Skip to content

Commit 996d852

Browse files
Update specialize.py
1 parent 8a68800 commit 996d852

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mypyc/irbuild/specialize.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,6 @@ def translate_fstring(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Va
711711
exprs.append(item.args[0])
712712

713713
for i in range(len(exprs) - 1):
714-
# TODO: instead of checking isinstance StrExpr, check with some new is_literal fn.
715-
# This can include IntExpr, BytesExpr, Final string RefExpr, and more future cases.
716-
717714
# NOTE: not sure where I should put these helpers
718715
def is_literal_str(expr: Expression) -> bool:
719716
return isinstance(expr, StrExpr) or isinstance(expr, RefExpr) and isinstance(expr.node, Var) and expr.node.final_value is not None

0 commit comments

Comments
 (0)