We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad507a commit bed37d6Copy full SHA for bed37d6
mypy/constant_fold.py
@@ -80,7 +80,7 @@ def constant_fold_expr(expr: Expression, cur_mod_id: str) -> ConstantValue | Non
80
index = constant_fold_expr(expr.index, cur_mod_id)
81
if index is not None:
82
try:
83
- return base[index]
+ return base[index] # type: ignore [index]
84
except Exception:
85
return None
86
0 commit comments