None との比較を報告します。 この種の比較は、常に is または is not を使用して実行する必要があります。等等値演算子は使用しないでください。
None
is
is not
例:
a = 2 if a == None: print("Success")
クイックフィックスが適用されると、コードは次のように変更されます。
a = 2 if a is None: print("Success")