Skip to content

Commit cf70747

Browse files
committed
some fixes (mainly to avoid recursion errors)
2 parents 755b479 + e2ccc4e commit cf70747

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mypy/checker.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,10 +2932,7 @@ def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
29322932

29332933
if s.unanalyzed_type is not None:
29342934
for lvalue in s.lvalues:
2935-
if (
2936-
isinstance(lvalue, NameExpr)
2937-
and isinstance(var := lvalue.node, Var)
2938-
):
2935+
if isinstance(lvalue, NameExpr) and isinstance(var := lvalue.node, Var):
29392936
self.search_deprecated(var.type, s, set())
29402937

29412938
# Avoid type checking type aliases in stubs to avoid false

0 commit comments

Comments
 (0)