Make InterpreterEnvironment public

This commit is contained in:
Dave Halter
2020-03-01 12:47:26 +01:00
parent afc61c2576
commit bd1ef659e8
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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