summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2018-02-04 19:13:17 +0100
committerhippo91 <guillaume.peillex@gmail.com>2018-02-04 19:13:17 +0100
commitb5e5bfbba22bf9f73faea63e175bd2f302a1bedd (patch)
tree37b5cb144a498cfe805ba1b4b0c6032eccbe60e1
parentde4c493ca088008ac3ad46dab7a0b3575dbf1e06 (diff)
downloadastroid-git-b5e5bfbba22bf9f73faea63e175bd2f302a1bedd.tar.gz
Correcting or disabling emission of useless-return message.
-rw-r--r--astroid/context.py1
-rw-r--r--astroid/node_classes.py2
-rw-r--r--astroid/scoped_nodes.py4
3 files changed, 3 insertions, 4 deletions
diff --git a/astroid/context.py b/astroid/context.py
index 627bae5d..00b0287b 100644
--- a/astroid/context.py
+++ b/astroid/context.py
@@ -42,7 +42,6 @@ class InferenceContext(object):
yield result
self.inferred[key] = tuple(results)
- return
@contextlib.contextmanager
def restore_path(self):
diff --git a/astroid/node_classes.py b/astroid/node_classes.py
index dcff3692..3c7418f3 100644
--- a/astroid/node_classes.py
+++ b/astroid/node_classes.py
@@ -636,7 +636,7 @@ class NodeNG(object):
for matching in child_node.nodes_of_class(klass, skip_klass):
yield matching
- def _infer_name(self, frame, name):
+ def _infer_name(self, frame, name): #pylint: disable=useless-return
# overridden for ImportFrom, Import, Global, TryExcept and Arguments
return None
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py
index be4483fe..74db78b8 100644
--- a/astroid/scoped_nodes.py
+++ b/astroid/scoped_nodes.py
@@ -536,7 +536,7 @@ class Module(LocalsDictNodeNG):
"""
return self
- def previous_sibling(self):
+ def previous_sibling(self): #pylint: disable=useless-return
"""The previous sibling statement.
:returns: The previous sibling statement node.
@@ -544,7 +544,7 @@ class Module(LocalsDictNodeNG):
"""
return
- def next_sibling(self):
+ def next_sibling(self): #pylint: disable=useless-return
"""The next sibling statement node.
:returns: The next sibling statement node.