]>
crepu.dev Git - config.git/blob - djavu-asus/elpy/rpc-venv/lib/python3.11/site-packages/jedi/inference/docstring_utils.py
1 from jedi
.inference
.value
import ModuleValue
2 from jedi
.inference
.context
import ModuleContext
5 class DocstringModule(ModuleValue
):
6 def __init__(self
, in_module_context
, **kwargs
):
7 super().__init
__(**kwargs
)
8 self
._in
_module
_context
= in_module_context
10 def _as_context(self
):
11 return DocstringModuleContext(self
, self
._in
_module
_context
)
14 class DocstringModuleContext(ModuleContext
):
15 def __init__(self
, module_value
, in_module_context
):
16 super().__init
__(module_value
)
17 self
._in
_module
_context
= in_module_context
19 def get_filters(self
, origin_scope
=None, until_position
=None):
20 yield from super().get_filters(until_position
=until_position
)
21 yield from self
._in
_module
_context
.get_filters()