mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Make InterpreterEnvironment public
This commit is contained in:
@@ -40,7 +40,7 @@ from jedi.api import Script, Interpreter, set_debug_function, \
|
|||||||
from jedi import settings
|
from jedi import settings
|
||||||
from jedi.api.environment import find_virtualenvs, find_system_environments, \
|
from jedi.api.environment import find_virtualenvs, find_system_environments, \
|
||||||
get_default_environment, InvalidPythonEnvironment, create_environment, \
|
get_default_environment, InvalidPythonEnvironment, create_environment, \
|
||||||
get_system_environment
|
get_system_environment, InterpreterEnvironment
|
||||||
from jedi.api.exceptions import InternalError
|
from jedi.api.exceptions import InternalError
|
||||||
# Finally load the internal plugins. This is only internal.
|
# Finally load the internal plugins. This is only internal.
|
||||||
from jedi.plugins import registry
|
from jedi.plugins import registry
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ class Listener(object):
|
|||||||
try:
|
try:
|
||||||
inference_state = self._inference_states[inference_state_id]
|
inference_state = self._inference_states[inference_state_id]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
from jedi.api.environment import InterpreterEnvironment
|
from jedi import InterpreterEnvironment
|
||||||
inference_state = InferenceState(
|
inference_state = InferenceState(
|
||||||
# The project is not actually needed. Nothing should need to
|
# The project is not actually needed. Nothing should need to
|
||||||
# access it.
|
# access it.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import pytest
|
|||||||
from . import helpers
|
from . import helpers
|
||||||
from . import run
|
from . import run
|
||||||
from . import refactor
|
from . import refactor
|
||||||
from jedi.api.environment import InterpreterEnvironment, get_system_environment
|
from jedi import InterpreterEnvironment, get_system_environment
|
||||||
from jedi.inference.compiled.value import create_from_access_path
|
from jedi.inference.compiled.value import create_from_access_path
|
||||||
from jedi.inference.imports import _load_python_module
|
from jedi.inference.imports import _load_python_module
|
||||||
from jedi.file_io import KnownContentFileIO
|
from jedi.file_io import KnownContentFileIO
|
||||||
|
|||||||
Reference in New Issue
Block a user