percent-format-mixed-positional-and-named (F506)
Added in v0.0.142 · Related issues · View source
Derived from the Pyflakes linter.
What it does
Checks for printf-style format strings that have mixed positional and
named placeholders.
Why is this bad?
Python does not support mixing positional and named placeholders in
printf-style format strings. The use of mixed placeholders will raise a
TypeError at runtime.
Example
Use instead:
Or: