string-dot-format-extra-positional-arguments (F523)
Derived from the Pyflakes linter.
Fix is sometimes available.
What it does
Checks for str.format
calls with unused positional arguments.
Why is this bad?
Unused positional arguments are redundant, and often indicative of a mistake. They should be removed.
Example
Use instead:
Fix safety
This rule's fix is marked as unsafe if the unused positional argument contains a function call with potential side effects, because removing such arguments could change the behavior of the code.
For example, the fix would be marked as unsafe in the following case: