literal-comparison / R0123#
In '%s', use '%s' when comparing constant literals not '%s' ('%s')
Used when comparing an object to a literal, which is usually what you do not want to do, since you can compare to a different literal than what was expected altogether.
def is_an_orange(fruit): return fruit is "orange" # [literal-comparison]
def is_an_orange(fruit): return fruit == "orange"
Created by the basic checker.