Skip to content

Commit 60574fc

Browse files
Update constant_fold.py
1 parent 9bd78f3 commit 60574fc

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
@@ -98,7 +98,7 @@ def constant_fold_expr(expr: Expression, cur_mod_id: str) -> ConstantValue | Non
9898
if stride is None:
9999
return None
100100
try:
101-
return base[begin_index:end_index:stride]
101+
return base[begin_index:end_index:stride] # type: ignore [index, misc]
102102
except Exception:
103103
return None
104104

0 commit comments

Comments
 (0)