mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +08:00
Use forward references because 3.8 is still a bit annoying
This commit is contained in:
@@ -84,7 +84,7 @@ from jedi.plugins import plugin_manager
|
|||||||
|
|
||||||
|
|
||||||
class InferenceState:
|
class InferenceState:
|
||||||
analysis_modules: list[Any]
|
analysis_modules: "list[Any]"
|
||||||
|
|
||||||
def __init__(self, project, environment=None, script_path=None):
|
def __init__(self, project, environment=None, script_path=None):
|
||||||
if environment is None:
|
if environment is None:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ from jedi.inference.utils import to_list
|
|||||||
from jedi.inference.names import TreeNameDefinition, ParamName, \
|
from jedi.inference.names import TreeNameDefinition, ParamName, \
|
||||||
AnonymousParamName, AbstractNameDefinition, NameWrapper
|
AnonymousParamName, AbstractNameDefinition, NameWrapper
|
||||||
|
|
||||||
_definition_name_cache: MutableMapping[UsedNamesMapping, dict[str, tuple[Name, ...]]] \
|
_definition_name_cache: 'MutableMapping[UsedNamesMapping, dict[str, tuple[Name, ...]]]' \
|
||||||
= weakref.WeakKeyDictionary()
|
= weakref.WeakKeyDictionary()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user