Skip to content

Commit 212bee8

Browse files
Update specialize.py
1 parent 1de5018 commit 212bee8

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
@@ -717,7 +717,7 @@ def get_literal_str(expr: Expression) -> str | None:
717717
elif (
718718
isinstance(expr, RefExpr)
719719
and isinstance(expr.node, Var)
720-
and expr.node.final_value is not None
720+
and expr.node.is_final
721721
):
722722
return str(expr.node.final_value)
723723
return None

0 commit comments

Comments
 (0)