Using equality operators to compare with None
Reports comparisons with
None. That type of comparisons should always be done with
is not, never the equality operators.
Once the quick-fix is applied, the code changes to:
DataSpell 2023.3, PyCharm 2023.3
Python Community Edition, 233.SNAPSHOT