This commit is contained in:
sun1638650145 2024-03-29 12:16:17 +08:00
parent b53af6310c
commit af4200ce45

View File

@ -40,7 +40,7 @@ def scalar_type(request):
def expected_signature(tp): def expected_signature(tp):
s = "str" if sys.version_info[0] >= 3 else "unicode" s = "str" if sys.version_info[0] >= 3 else "unicode"
t = type_name(tp) t = type_name(tp)
return f"test_{t}(x: {t}) -> Tuple[{s}, {t}]\n" return f"test_{t}(x: {t}) -> tuple[{s}, {t}]\n"
def test_numpy_scalars(scalar_type): def test_numpy_scalars(scalar_type):