1
0
forked from VimPlug/jedi

get_filters should always have the default search_global=False

This commit is contained in:
Dave Halter
2018-09-06 01:06:09 +02:00
parent 4730c71b16
commit a5e6f26267
9 changed files with 12 additions and 11 deletions

View File

@@ -337,7 +337,7 @@ class _MixedStubContextMixin(object):
class _StubContextFilterMixin(_MixedStubContextMixin):
def get_filters(self, search_global, until_position=None,
def get_filters(self, search_global=False, until_position=None,
origin_scope=None, **kwargs):
filters = super(_StubContextFilterMixin, self).get_filters(
search_global, until_position, origin_scope, **kwargs
@@ -384,7 +384,7 @@ class StubOnlyModuleContext(ModuleContext):
for context in self.non_stub_context_set:
yield next(context.get_filters(search_global=False))
def get_filters(self, search_global, until_position=None,
def get_filters(self, search_global=False, until_position=None,
origin_scope=None, **kwargs):
filters = super(StubOnlyModuleContext, self).get_filters(
search_global, until_position, origin_scope, **kwargs