Skip to content

Commit 053a94b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7281285 commit 053a94b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mypy/semanal.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,7 @@ def always_allow_new_syntax(self) -> bool:
489489
def check_pep585_name(self, fullname: str, name: str) -> bool:
490490
return fullname == "typing." + name.capitalize() or (
491491
fullname == "builtins." + name.lower()
492-
and (
493-
self.always_allow_new_syntax
494-
or self.options.python_version >= (3, 9)
495-
)
492+
and (self.always_allow_new_syntax or self.options.python_version >= (3, 9))
496493
)
497494

498495
@contextmanager

0 commit comments

Comments
 (0)