Skip to content

Commit

Permalink
Allows builtins to be generic aliases (PEP 585)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanDaemon committed Sep 18, 2020
1 parent 37777b3 commit 22a4789
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mypy/main.py
Expand Up @@ -84,6 +84,10 @@ def flush_errors(new_messages: List[str], serious: bool) -> None:
except BrokenPipeError:
sys.exit(2)

if options.python_version >= (3, 9):
from mypy.nodes import nongen_builtins
nongen_builtins.clear()

serious = False
blockers = False
res = None
Expand Down

0 comments on commit 22a4789

Please sign in to comment.