diff --git a/mypy/test/teststubgen.py b/mypy/test/teststubgen.py index 89684faa8ee2..1cd463f41160 100644 --- a/mypy/test/teststubgen.py +++ b/mypy/test/teststubgen.py @@ -949,7 +949,7 @@ def test_generic_class(self) -> None: exec("class Test[A]: ...") # type: ignore used for older versions of python type checking - class TestClass[A]: ... # type: ignore[syntax] + class TestClass[A]: ... # type: ignore output: list[str] = [] mod = ModuleType("module", "")