pylint-errors

W1306 (missing-format-attribute)

:x: Problematic code:

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

:heavy_check_mark: Correct code:

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

Rationale:

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