Skip to content

Commit c21bb26

Browse files
Update checkexpr.py
1 parent 1f894a9 commit c21bb26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def visit_call_expr_inner(self, e: CallExpr, allow_none_return: bool = False) ->
657657
return ret_type
658658

659659
def check_str_format_call(self, e: CallExpr) -> None:
660-
"""More precise type checking for str.format() calls on literals."""
660+
"""More precise type checking for str.format() calls on literals and folded constants."""
661661
assert isinstance(e.callee, MemberExpr)
662662
format_value = None
663663
folded_callee_expr = constant_fold_expr(e.callee.expr, "<unused>")

0 commit comments

Comments
 (0)