We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7281285 commit 053a94bCopy full SHA for 053a94b
mypy/semanal.py
@@ -489,10 +489,7 @@ def always_allow_new_syntax(self) -> bool:
489
def check_pep585_name(self, fullname: str, name: str) -> bool:
490
return fullname == "typing." + name.capitalize() or (
491
fullname == "builtins." + name.lower()
492
- and (
493
- self.always_allow_new_syntax
494
- or self.options.python_version >= (3, 9)
495
- )
+ and (self.always_allow_new_syntax or self.options.python_version >= (3, 9))
496
)
497
498
@contextmanager
0 commit comments