1
0
forked from VimPlug/jedi

Remove a check that is not needed

This commit is contained in:
Dave Halter
2019-08-24 01:09:26 +02:00
parent ddb2ccb657
commit 250ac77f4a
2 changed files with 4 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ just one.
"""
from functools import reduce
from operator import add
from parso.python.tree import ExprStmt, SyncCompFor, Name, Param
from parso.python.tree import ExprStmt, SyncCompFor, Name
from jedi import debug
from jedi._compatibility import zip_longest, unicode
@@ -82,9 +82,7 @@ class HelperValueMixin(object):
n = name_or_str.value if isinstance(name_or_str, Name) else name_or_str
values = self.py__getattribute__alternatives(n)
if not names and analysis_errors and not values \
and not (isinstance(name_or_str, Name) and
isinstance(name_or_str.parent.parent, Param)):
if not names and not values and analysis_errors:
if isinstance(name_or_str, Name):
from jedi.inference import analysis
analysis.add_attribute_error(