Skip to content

Commit bed37d6

Browse files
Update constant_fold.py
1 parent 4ad507a commit bed37d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/constant_fold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def constant_fold_expr(expr: Expression, cur_mod_id: str) -> ConstantValue | Non
8080
index = constant_fold_expr(expr.index, cur_mod_id)
8181
if index is not None:
8282
try:
83-
return base[index]
83+
return base[index] # type: ignore [index]
8484
except Exception:
8585
return None
8686
return None

0 commit comments

Comments
 (0)