forked from VimPlug/jedi
Replace names_dicts with filters in trailer completion.
This commit is contained in:
@@ -157,7 +157,7 @@ class CompiledObject(Base):
|
||||
def names_dicts(self, search_global, is_instance=False):
|
||||
return self._names_dict_ensure_one_dict(is_instance)
|
||||
|
||||
def get_filters(self, search_global, is_instance=False, until_position=None):
|
||||
def get_filters(self, search_global=False, is_instance=False, until_position=None):
|
||||
yield self._ensure_one_filter(is_instance)
|
||||
|
||||
@memoize_method
|
||||
|
||||
@@ -554,7 +554,8 @@ class Class(use_metaclass(CachedMetaClass, Wrapper)):
|
||||
else:
|
||||
for scope in self.py__mro__():
|
||||
if isinstance(scope, compiled.CompiledObject):
|
||||
raise NotImplementedError
|
||||
for filter in scope.get_filters():
|
||||
yield filter
|
||||
else:
|
||||
yield ParserTreeFilter(self._evaluator, self.base)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user