Python

Python

Made by DeepSource

Misplaced format function PYL-E0119

Bug risk
Critical

The format() function is called on an object that is not a string. This is an error.

Incorrect code:

print('value: {}').format(123)

Correct code:

print('value: {}'.format(123))