Skip to content

Commit aaa4a19

Browse files
Update constant_fold.py
1 parent 598c7f8 commit aaa4a19

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
@@ -114,7 +114,7 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
114114
return base[begin_index:end_index:stride]
115115
except Exception:
116116
return None
117-
try:
117+
try: # type: ignore [unreachable]
118118
return base[begin_index:end_index:stride]
119119
except Exception:
120120
return None
@@ -130,7 +130,7 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
130130
except Exception:
131131
return None
132132
else:
133-
try:
133+
try: # type: ignore [unreachable]
134134
return base[index]
135135
except Exception:
136136
return None

0 commit comments

Comments
 (0)