Skip to content

Commit 80a97a9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 212bee8 commit 80a97a9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypyc/irbuild/specialize.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,7 @@ def translate_fstring(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Va
714714
def get_literal_str(expr: Expression) -> str | None:
715715
if isinstance(expr, StrExpr):
716716
return expr.value
717-
elif (
718-
isinstance(expr, RefExpr)
719-
and isinstance(expr.node, Var)
720-
and expr.node.is_final
721-
):
717+
elif isinstance(expr, RefExpr) and isinstance(expr.node, Var) and expr.node.is_final:
722718
return str(expr.node.final_value)
723719
return None
724720

0 commit comments

Comments
 (0)