forked from VimPlug/jedi
Don't use stub_to_python_context_set anymore
This commit is contained in:
@@ -29,7 +29,7 @@ from jedi.evaluate.filters import get_global_filters
|
||||
from jedi.evaluate.names import TreeNameDefinition
|
||||
from jedi.evaluate.base_context import ContextSet, NO_CONTEXTS
|
||||
from jedi.parser_utils import is_scope, get_parent_scope
|
||||
from jedi.evaluate.gradual.conversion import stub_to_python_context_set
|
||||
from jedi.evaluate.gradual.conversion import convert_contexts
|
||||
|
||||
|
||||
class NameFinder(object):
|
||||
@@ -123,8 +123,7 @@ class NameFinder(object):
|
||||
yield f
|
||||
# This covers the case where a stub files are incomplete.
|
||||
if self._context.is_stub():
|
||||
contexts = stub_to_python_context_set(self._context, ignore_compiled=True)
|
||||
for c in contexts:
|
||||
for c in convert_contexts(ContextSet({self._context})):
|
||||
for f in c.get_filters():
|
||||
yield f
|
||||
|
||||
|
||||
Reference in New Issue
Block a user