summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorAshley Whetter <ashley@awhetter.co.uk>2018-05-05 16:52:07 -0700
committerAshley Whetter <ashley@awhetter.co.uk>2018-05-05 16:52:07 -0700
commit023dfc52c405fb095ce69b3a891e901093033d1b (patch)
treed5eec3daba336a7d5f852e7baa244b649527e8ca /astroid/protocols.py
parent228e34db1fdc4935df0d3d63f24e1e484dddf7e4 (diff)
downloadastroid-git-023dfc52c405fb095ce69b3a891e901093033d1b.tar.gz
Fix lint errors
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 7ae93976..641605c5 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -354,7 +354,7 @@ nodes.Arguments.assigned_stmts = arguments_assigned_stmts
def assign_assigned_stmts(self, node=None, context=None, asspath=None):
if not asspath:
yield self.value
- return
+ return None
for inferred in _resolve_asspart(self.value.infer(context), asspath, context):
yield inferred
# Explicit StopIteration to return error information, see comment
@@ -503,7 +503,7 @@ def with_assigned_stmts(self, node=None, context=None, asspath=None):
try:
mgr = next(mgr for (mgr, vars) in self.items if vars == node)
except StopIteration:
- return
+ return None
if asspath is None:
for result in _infer_context_manager(self, mgr, context):
yield result