Skip to content

Commit e32898f

Browse files
committed
Fix type check
1 parent fc17388 commit e32898f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/annotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def visit_with_stmt(self, o: WithStmt, /) -> None:
334334
def visit_assignment_stmt(self, o: AssignmentStmt, /) -> None:
335335
special_form = False
336336
if self.func_depth == 0:
337-
analyzed = o.rvalue
337+
analyzed: Expression | None = o.rvalue
338338
if isinstance(o.rvalue, (CallExpr, IndexExpr, OpExpr)):
339339
analyzed = o.rvalue.analyzed
340340
if o.is_alias_def or isinstance(

0 commit comments

Comments
 (0)