compare-to-zero / C2001#

Message emitted:

Avoid comparisons to zero

Description:

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 !

Note

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.