Pattern: Use of format()
on non-str
object
Issue: -
Emitted when format()
is not called on str
object. This might not be what you intended to do.
Example of incorrect code:
print("value: {}").format(123)
Example of correct code:
print("value: {}".format(123))