Skip to content

Commit 58e5182

Browse files
Update constant_fold.py
1 parent 9156092 commit 58e5182

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/constant_fold.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ def constant_fold_call_expr(
266266
and len(args := expr.args) == 1
267267
and isinstance(arg := args[0], (ListExpr, TupleExpr))
268268
):
269-
folded_items: list[str] = []
269+
folded_strings: list[str] = []
270270
for item in arg.items:
271271
val = constant_fold_expr(item, cur_mod_id)
272272
if not isinstance(val, str):
273273
return None
274-
folded_items.append(val)
275-
return folded_callee.join(folded_items)
274+
folded_strings.append(val)
275+
return folded_callee.join(folded_strings)
276276
# --- str.format constant folding ---
277277
elif callee.name == "format":
278278
folded_args = []

0 commit comments

Comments
 (0)