Refactor the plugin registry

This commit is contained in:
Dave Halter
2019-07-16 12:48:54 +02:00
parent 8329e2e969
commit dea887d27d
6 changed files with 66 additions and 53 deletions
+2
View File
@@ -1,5 +1,6 @@
import os
import re
from functools import wraps
from jedi.file_io import FileIO
from jedi._compatibility import FileNotFoundError, cast_path
@@ -87,6 +88,7 @@ def _cache_stub_file_map(version_info):
def import_module_decorator(func):
@wraps(func)
def wrapper(evaluator, import_names, parent_module_context, sys_path, prefer_stubs):
try:
python_context_set = evaluator.module_cache.get(import_names)