-
- Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
type-featureA feature request or enhancementA feature request or enhancement
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
Linked PRs
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement