1
0
forked from VimPlug/jedi

Don't use stub_to_python_context_set anymore

This commit is contained in:
Dave Halter
2019-06-10 19:39:26 +02:00
parent 56d8945d17
commit 5ef0563abe
4 changed files with 11 additions and 18 deletions
+3 -6
View File
@@ -356,12 +356,9 @@ class Importer(object):
names += context.sub_modules_dict().values()
if not only_modules:
from jedi.evaluate.gradual.conversion import stub_to_python_context_set
both_contexts = ContextSet.from_sets(
stub_to_python_context_set(context, ignore_compiled=True)
for context in contexts
if context.is_stub()
) | contexts
from jedi.evaluate.gradual.conversion import convert_contexts
both_contexts = contexts | convert_contexts(contexts)
for c in both_contexts:
for filter in c.get_filters(search_global=False):
names += filter.values()