We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9156092 commit 58e5182Copy full SHA for 58e5182
mypy/constant_fold.py
@@ -266,13 +266,13 @@ def constant_fold_call_expr(
266
and len(args := expr.args) == 1
267
and isinstance(arg := args[0], (ListExpr, TupleExpr))
268
):
269
- folded_items: list[str] = []
+ folded_strings: list[str] = []
270
for item in arg.items:
271
val = constant_fold_expr(item, cur_mod_id)
272
if not isinstance(val, str):
273
return None
274
- folded_items.append(val)
275
- return folded_callee.join(folded_items)
+ folded_strings.append(val)
+ return folded_callee.join(folded_strings)
276
# --- str.format constant folding ---
277
elif callee.name == "format":
278
folded_args = []
0 commit comments