too-many-format-args / E1305#
Message emitted:
Too many arguments for format string
Description:
Used when a format string that uses unnamed conversion specifiers is given too many arguments.
Problematic code:
print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday", "Wednesday")) # [too-many-format-args]
Correct code:
print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday"))
Related links:
Created by the string checker.