format-string-without-interpolation / W1310#

Message emitted:

Using formatting for a string that does not have any interpolated variables

Description:

Used when we detect a string that does not have any interpolation variables, in which case it can be either a normal string without formatting or a bug in the code.

Correct code:

print("number: {}".format(1))

Problematic code:

print("number".format(1))  # [format-string-without-interpolation]

Created by the string checker.