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 fa9a811 commit a489f39Copy full SHA for a489f39
mypy/constant_fold.py
@@ -273,7 +273,7 @@ def constant_fold_call_expr(
273
return folded_callee.join(folded_items)
274
# --- str.format constant folding
275
elif callee.name == "format":
276
- folded_args: list[str] = []
+ folded_args: list[ConstantValue] = []
277
for arg in expr.args:
278
arg_val = constant_fold_expr(arg, cur_mod_id)
279
if arg_val is None:
0 commit comments