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:

# +1: [too-many-format-args]
print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday", "Wednesday"))

Correct code:

print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday"))

Related links:

Created by the string checker.