Skip to content

Commit e3d002e

Browse files
committed
Fix lint for alignment specifier on none
1 parent d4f70fb commit e3d002e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mypy/checkstrformat.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,14 @@ def perform_special_format_checks(
458458
specifierIndex = i
459459
if specifierIndex > -1:
460460
self.msg.fail(
461-
(
462-
f'Alignment format specifier '
463-
f'"{spec.format_spec[specifierIndex]}" '
464-
f'is not supported for None'
465-
),
466-
call,
467-
code=codes.STRING_FORMATTING,
468-
)
461+
(
462+
f"Alignment format specifier "
463+
f'"{spec.format_spec[specifierIndex]}" '
464+
f"is not supported for None"
465+
),
466+
call,
467+
code=codes.STRING_FORMATTING,
468+
)
469469

470470
def find_replacements_in_call(self, call: CallExpr, keys: list[str]) -> list[Expression]:
471471
"""Find replacement expression for every specifier in str.format() call.

0 commit comments

Comments
 (0)