Skip to content

Commit 9da85e6

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/semanal.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3498,11 +3498,7 @@ def is_type_ref(self, rv: Expression, bare: bool = False) -> bool:
34983498
# should be evaluated as a variable assignment, not a type expression.
34993499
# This allows usage like `B = A` where `type A[T] = ...` without
35003500
# triggering "Missing type parameters" error.
3501-
if (
3502-
bare
3503-
and rv.node.python_3_12_type_alias
3504-
and rv.node.alias_tvars
3505-
):
3501+
if bare and rv.node.python_3_12_type_alias and rv.node.alias_tvars:
35063502
return False
35073503
return True
35083504

0 commit comments

Comments
 (0)