1
0
forked from VimPlug/jedi

Because of the change in dynamic params, we can now remove the decorator hack in the name finder.

This commit is contained in:
Dave Halter
2014-11-18 13:06:20 +01:00
parent f9276a8bd2
commit 93ffc799f5
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -37,9 +37,9 @@ class NameFinder(object):
self.position = position
@debug.increase_indent
def find(self, scopes, resolve_decorator=True, search_global=False):
def find(self, scopes, search_global=False):
names = self.filter_name(scopes, search_global)
types = self._names_to_types(names, resolve_decorator)
types = self._names_to_types(names)
if not names and not types \
and not (isinstance(self.name_str, pr.Name)
@@ -274,7 +274,7 @@ class NameFinder(object):
return True
return False
def _names_to_types(self, names, resolve_decorator):
def _names_to_types(self, names):
types = []
evaluator = self._evaluator
@@ -319,7 +319,7 @@ class NameFinder(object):
types = list(chain.from_iterable(
evaluator.execute(t) for t in exceptions))
else:
if typ.isinstance(er.Function) and resolve_decorator:
if typ.isinstance(er.Function):
typ = typ.get_decorated_func()
types.append(typ)