format-combined-specification / W1305#
Message emitted:
Format string contains both automatic field numbering and manual field specification
Description:
Used when a PEP 3101 format string contains both automatic field numbering (e.g. '{}') and manual field specification (e.g. '{0}').
Problematic code:
print('{} {1}'.format('hello', 'world')) # [format-combined-specification]
Correct code:
print('{0} {1}'.format('hello', 'world'))
# or
print('{} {}'.format('hello', 'world'))
Created by the string checker.