.. _nan-comparison: nan-comparison / W0177 ====================== **Message emitted:** ``Comparison %s should be %s`` **Description:** *Used when an expression is compared to NaN values like numpy.NaN and float('nan').* **Problematic code:** .. literalinclude:: /data/messages/n/nan-comparison/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/n/nan-comparison/good.py :language: python Created by the `basic `__ checker.