summaryrefslogtreecommitdiff
path: root/pylint/checkers/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/base.py')
-rw-r--r--pylint/checkers/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index bccc967..73e0315 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -1869,6 +1869,9 @@ class NotChecker(_BasicChecker):
operand.operand.as_string()))
elif isinstance(operand, astroid.Compare):
left = operand.left
+ # ignore multiple comparisons
+ if len(operand.ops) > 1:
+ return
operator, right = operand.ops[0]
if operator not in self.reverse_op:
return