flake8 · flake8/E711
E711
Comparison to None
A value is compared to None using == or != instead of the identity operators 'is' or 'is not'. Use 'x is None' or 'x is not None'.
A value is compared to None using == or != instead of the identity operators 'is' or 'is not'. Use 'x is None' or 'x is not None'.