Skip to content

Commit

Permalink
pass in None
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jul 23, 2024
1 parent 3c943dc commit 53a5979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ class TestClass:
def test_generic_class(self) -> None:
# This class declaration lives in exec to avoid syntax version on python versions < 3.12
local: dict[str, Any] = {}
exec("class Test[A]: ...", globals(), local)
exec("class Test[A]: ...", None, local)

output: list[str] = []
mod = ModuleType("module", "")
Expand Down

0 comments on commit 53a5979

Please sign in to comment.