summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index 985e4e4ee..5d71b98f3 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -298,14 +298,14 @@ def _safe_infer_call_result(node, caller, context=None):
inferit = node.infer_call_result(caller, context=context)
value = next(inferit)
except astroid.InferenceError:
- return # inference failed
+ return None # inference failed
except StopIteration:
- return # no values infered
+ return None # no values infered
try:
next(inferit)
- return # there is ambiguity on the inferred node
+ return None # there is ambiguity on the inferred node
except astroid.InferenceError:
- return # there is some kind of ambiguity
+ return None # there is some kind of ambiguity
except StopIteration:
return value