Skip to content

Commit d7f75f4

Browse files
Update constant_fold.py
1 parent bed37d6 commit d7f75f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
7979
index = constant_fold_expr(builder, expr.base)
8080
if index is not None:
8181
try:
82-
return base[index]
82+
return base[index] # type: ignore [index]
8383
except Exception:
8484
return None
8585
return None

0 commit comments

Comments
 (0)