mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-29 05:52:10 +08:00
Eliminate more actual appearances
This commit is contained in:
@@ -18,7 +18,7 @@ from jedi.evaluate.imports import ImportName
|
||||
from jedi.evaluate.context import FunctionExecutionContext
|
||||
from jedi.evaluate.gradual.typeshed import StubModuleContext
|
||||
from jedi.evaluate.gradual.conversion import convert_names, \
|
||||
stub_to_actual_context_set
|
||||
stub_to_python_context_set
|
||||
from jedi.api.keywords import KeywordName
|
||||
|
||||
|
||||
@@ -704,7 +704,7 @@ class _Help(object):
|
||||
if not raw:
|
||||
signature_text = _format_signatures(context)
|
||||
if not doc and context.is_stub():
|
||||
for c in stub_to_actual_context_set(context):
|
||||
for c in stub_to_python_context_set(context):
|
||||
doc = c.py__doc__()
|
||||
if doc:
|
||||
break
|
||||
|
||||
@@ -11,7 +11,7 @@ from jedi.evaluate import imports
|
||||
from jedi.api import keywords
|
||||
from jedi.evaluate.helpers import evaluate_call_of_leaf, parse_dotted_names
|
||||
from jedi.evaluate.filters import get_global_filters
|
||||
from jedi.evaluate.gradual.conversion import stub_to_actual_context_set
|
||||
from jedi.evaluate.gradual.conversion import stub_to_python_context_set
|
||||
from jedi.parser_utils import get_statement_of_position
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ class Completion:
|
||||
if not context.is_stub():
|
||||
continue
|
||||
|
||||
actual_contexts = stub_to_actual_context_set(context, ignore_compiled=True)
|
||||
actual_contexts = stub_to_python_context_set(context, ignore_compiled=True)
|
||||
for c in actual_contexts:
|
||||
for filter in c.get_filters(
|
||||
search_global=False,
|
||||
|
||||
Reference in New Issue
Block a user