Skip to content

Commit 286a108

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8add115 commit 286a108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ def folding_candidate(
154154
by constant folding the expression and will only proceed to transform
155155
the expression if folding is not possible.
156156
"""
157+
157158
def constant_fold_wrap(builder: IRBuilder, expr: Expression) -> Value | None:
158159
folded = try_constant_fold(builder, expr)
159160
return folded if folded is not None else transform(builder, expr)
161+
160162
return constant_fold_wrap

0 commit comments

Comments
 (0)