diff options
author | Ashley Whetter <ashley@awhetter.co.uk> | 2018-05-05 16:52:07 -0700 |
---|---|---|
committer | Ashley Whetter <ashley@awhetter.co.uk> | 2018-05-05 16:52:07 -0700 |
commit | 023dfc52c405fb095ce69b3a891e901093033d1b (patch) | |
tree | d5eec3daba336a7d5f852e7baa244b649527e8ca /astroid/inference.py | |
parent | 228e34db1fdc4935df0d3d63f24e1e484dddf7e4 (diff) | |
download | astroid-git-023dfc52c405fb095ce69b3a891e901093033d1b.tar.gz |
Fix lint errors
Diffstat (limited to 'astroid/inference.py')
-rw-r--r-- | astroid/inference.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index 5467736e..8c862ee9 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -327,18 +327,18 @@ def infer_subscript(self, context=None): try: value = next(self.value.infer(context)) except StopIteration: - return + return None if value is util.Uninferable: yield util.Uninferable - return + return None try: index = next(self.slice.infer(context)) except StopIteration: - return + return None if index is util.Uninferable: yield util.Uninferable - return + return None # Try to deduce the index value. index_value = _SUBSCRIPT_SENTINEL @@ -367,7 +367,7 @@ def infer_subscript(self, context=None): # is the same as the original subscripted object. if self is assigned or assigned is util.Uninferable: yield util.Uninferable - return + return None for inferred in assigned.infer(context): yield inferred @@ -398,7 +398,7 @@ def _infer_boolop(self, context=None): values = [value.infer(context=context) for value in values] except exceptions.InferenceError: yield util.Uninferable - return + return None for pair in itertools.product(*values): if any(item is util.Uninferable for item in pair): |