literal-comparison / R0123#
Comparison to literal
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 == "orange"
def is_an_orange(fruit): return fruit is "orange" # [literal-comparison]
Created by the basic checker.