misplaced-format-function / E0119#

Message emitted:

format function is not called on str

Description:

Emitted when format function is not called on str object. e.g doing print("value: {}").format(123) instead of print("value: {}".format(123)). This might not be what the user intended to do.

Correct code:

print('Value: {}'.format('Car'))

Problematic code:

print('Value: {}').format('Car')  # [misplaced-format-function]

Created by the basic checker.