Skip to content

Commit c24e67e

Browse files
Update constant_fold.py
1 parent 979ee73 commit c24e67e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mypyc/irbuild/constant_fold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
104104
if stride is None:
105105
return None
106106
try:
107-
return base[begin_index:end_index:stride] # type: ignore [index, misc]
107+
return base[begin_index:end_index:stride]
108108
except Exception:
109109
return None
110110

111111
index = constant_fold_expr(builder, index_expr)
112112
if index is not None:
113113
try:
114-
return base[index] # type: ignore [index]
114+
return base[index]
115115
except Exception:
116116
return None
117117
return None

0 commit comments

Comments
 (0)