style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2023-09-06 23:54:16 +00:00
parent e9306bdf67
commit 15ff9f48f7

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 "test_{t}(x: {t}) -> Tuple[{s}, {t}]\n".format(s=s, t=t) return f"test_{t}(x: {t}) -> Tuple[{s}, {t}]\n"
def test_numpy_scalars(scalar_type): def test_numpy_scalars(scalar_type):