too-few-format-args / E1306#

Message emitted:

Not enough arguments for format string

Description:

Used when a format string that uses unnamed conversion specifiers is given too few arguments

Problematic code:

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

Correct code:

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

Related links:

Created by the string checker.