Closed
Description
I had a coworker slightly confused about the following warning, since None is a literal and is not None
is idiomatic:
>>> 'a' is not None
<stdin>:1: SyntaxWarning: "is not" with a literal. Did you mean "!="?
True
I think this would be better as:
>>> 'a' is not None
<stdin>:1: SyntaxWarning: "is not" with str literal. Did you mean "!="?
True