diff --git a/mypy/test/teststubgen.py b/mypy/test/teststubgen.py index 4a622f57fb7f..f78c2dadf76d 100644 --- a/mypy/test/teststubgen.py +++ b/mypy/test/teststubgen.py @@ -931,9 +931,7 @@ class TestClass(argparse.Action): assert_equal(output, ["class C(argparse.Action): ..."]) assert_equal(gen.get_imports().splitlines(), ["import argparse"]) - @unittest.skipIf( - sys.version < (3, 12), "Inline Generics not supported before Python3.12" - ) + @unittest.skipIf(sys.version < (3, 12), "Inline Generics not supported before Python3.12") def test_inline_generic_class(self) -> None: T = TypeVar("T") @@ -946,9 +944,7 @@ class TestClass: gen.generate_class_stub("C", TestClass, output) assert_equal(output, ["class C[T]: ..."]) - @unittest.skipIf( - sys.version < (3, 12), "Inline Generics not supported before Python3.12" - ) + @unittest.skipIf(sys.version < (3, 12), "Inline Generics not supported before Python3.12") def test_inline_generic_function(self) -> None: T = TypeVar("T", bound=int)