missing-format-attribute / W1306#

Message emitted:

Missing format attribute %r in format specifier %r

Description:

Used when a PEP 3101 format string uses an attribute specifier ({0.length}), but the argument passed for formatting doesn't have that attribute.

Correct code:

print("{0.real}".format(1))

Problematic code:

print("{0.real}".format("1"))  # [missing-format-attribute]

Created by the string checker.