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 8b94be8 commit d4f70fbCopy full SHA for d4f70fb
mypy/checkstrformat.py
@@ -448,7 +448,8 @@ def perform_special_format_checks(
448
call,
449
code=codes.STRING_FORMATTING,
450
)
451
- if isinstance(actual_type, NoneType):
+ a_type = get_proper_type(actual_type)
452
+ if isinstance(a_type, NoneType):
453
# Perform type check of alignment specifiers on None
454
if spec.format_spec and any(c in spec.format_spec for c in "<>^"):
455
specifierIndex = -1
0 commit comments