Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 22, 2024
1 parent 7e07a99 commit a2d2328
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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)

Expand Down

0 comments on commit a2d2328

Please sign in to comment.