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 8add115 commit 286a108Copy full SHA for 286a108
mypyc/irbuild/constant_fold.py
@@ -154,7 +154,9 @@ def folding_candidate(
154
by constant folding the expression and will only proceed to transform
155
the expression if folding is not possible.
156
"""
157
+
158
def constant_fold_wrap(builder: IRBuilder, expr: Expression) -> Value | None:
159
folded = try_constant_fold(builder, expr)
160
return folded if folded is not None else transform(builder, expr)
161
162
return constant_fold_wrap
0 commit comments