diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-03-13 13:15:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 13:15:46 +0100 |
commit | 663a2be7abd407fc680f426155ba26becaaa278d (patch) | |
tree | fe0b64a75fe24093b6f26018d82e5b5477a13d3c /pylint/extensions/comparetozero.py | |
parent | 7981ec021b84c6f2b216202c1c028da4b0ee995b (diff) | |
download | pylint-git-663a2be7abd407fc680f426155ba26becaaa278d.tar.gz |
Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)
Diffstat (limited to 'pylint/extensions/comparetozero.py')
-rw-r--r-- | pylint/extensions/comparetozero.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/extensions/comparetozero.py b/pylint/extensions/comparetozero.py index 592e15a5b..0d0865a13 100644 --- a/pylint/extensions/comparetozero.py +++ b/pylint/extensions/comparetozero.py @@ -31,6 +31,7 @@ def _is_constant_zero(node): class CompareToZeroChecker(checkers.BaseChecker): """Checks for comparisons to zero. + Most of the time you should use the fact that integers with a value of 0 are false. An exception to this rule is when 0 is allowed in the program and has a different meaning than None! |