Skip to content

Commit 2255e1c

Browse files
committed
Suppress errors in followup lookup.
1 parent 3cc7e2e commit 2255e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal_pass3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def visit_import_from(self, imp: ImportFrom) -> None:
279279
def visit_name_expr(self, expr: NameExpr) -> None:
280280
# Fixup remaining UNBOUND_IMPORTED nodes from import cycles
281281
if expr.kind == UNBOUND_IMPORTED:
282-
n = self.sem.lookup(expr.name, expr)
282+
n = self.sem.lookup(expr.name, expr, suppress_errors=True)
283283
if n:
284284
expr.kind = n.kind
285285
expr.node = n.node

0 commit comments

Comments
 (0)