mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Add a docstring to mention PEP 561
This commit is contained in:
@@ -124,6 +124,12 @@ def import_module_decorator(func):
|
||||
|
||||
|
||||
def _try_to_load_stub(evaluator, actual_context_set, parent_module_context, sys_path, import_names):
|
||||
"""
|
||||
Trying to load a stub for a set of import_names.
|
||||
|
||||
This is modelled to work like "PEP 561 -- Distributing and Packaging Type
|
||||
Information", see https://www.python.org/dev/peps/pep-0561.
|
||||
"""
|
||||
try:
|
||||
return evaluator.stub_module_cache[import_names]
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user