compare-to-zero / C2001#

Message emitted:

Avoid comparisons to zero


Used when Pylint detects comparison to a 0 constant.

Correct code:

# This is a placeholder for correct code for this message.

Additional details:

You can help us make the doc better by contributing !


This message is emitted by the optional 'compare-to-zero' checker which requires the pylint.extensions.comparetozero plugin to be loaded.

Created by the compare-to-zero checker.