Last published: September 24, 2026
PY3.E0119
Misplaced format function
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.
Noncompliant Code:
Copy
print('Value: {}').format('Car')
Compliant Code:
Copy
print('Value: {}'.format('Car'))