Skip to content

Commit feb3e94

Browse files
committed
Update specialize.py
1 parent 0114120 commit feb3e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/specialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def translate_fstring(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Va
749749
for i, item in enumerate(items):
750750
if isinstance(item, StrExpr):
751751
continue
752-
elif (folded := constant_fold_expr(builder, item) is not None:
752+
elif (folded := constant_fold_expr(builder, item)) is not None:
753753
items[i] = StrExpr(str(folded))
754754
continue
755755
elif isinstance(item, CallExpr):

0 commit comments

Comments
 (0)