summaryrefslogtreecommitdiff
path: root/pylint/extensions/comparetozero.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-03-13 13:15:46 +0100
committerGitHub <noreply@github.com>2022-03-13 13:15:46 +0100
commit663a2be7abd407fc680f426155ba26becaaa278d (patch)
treefe0b64a75fe24093b6f26018d82e5b5477a13d3c /pylint/extensions/comparetozero.py
parent7981ec021b84c6f2b216202c1c028da4b0ee995b (diff)
downloadpylint-git-663a2be7abd407fc680f426155ba26becaaa278d.tar.gz
Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)
Diffstat (limited to 'pylint/extensions/comparetozero.py')
-rw-r--r--pylint/extensions/comparetozero.py1
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!