Skip to content

Commit 8b50424

Browse files
Update specialize.py
1 parent 5cee243 commit 8b50424

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
@@ -727,7 +727,7 @@ def get_literal_str(expr: Expression) -> str | None:
727727
first = exprs[i]
728728
concatenated = StrExpr(get_literal_str(first) + get_literal_str(exprs[i + 1])) # type: ignore [operator]
729729
exprs = [*exprs[:i], concatenated, *exprs[i + 2 :]]
730-
format_ops = [*format_ops[:i], format_ops[i + 1], *format_ops[i + 2 :]]
730+
format_ops = [*format_ops[:i], FormatOp.STR, *format_ops[i + 2 :]]
731731

732732
substitutions = convert_format_expr_to_str(builder, format_ops, exprs, expr.line)
733733
if substitutions is None:

0 commit comments

Comments
 (0)