massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / imp.pyi
1 """Stubs for the 'imp' module."""\r
2 \r
3 from typing import List, Optional, Tuple, Iterable, IO, Any\r
4 import types\r
5 \r
6 C_BUILTIN = ...  # type: int\r
7 C_EXTENSION = ...  # type: int\r
8 IMP_HOOK = ...  # type: int\r
9 PKG_DIRECTORY = ...  # type: int\r
10 PY_CODERESOURCE = ...  # type: int\r
11 PY_COMPILED = ...  # type: int\r
12 PY_FROZEN = ...  # type: int\r
13 PY_RESOURCE = ...  # type: int\r
14 PY_SOURCE = ...  # type: int\r
15 SEARCH_ERROR = ...  # type: int\r
16 \r
17 def acquire_lock() -> None: ...\r
18 def find_module(name: str, path: Iterable[str] = ...) -> Optional[Tuple[str, str, Tuple[str, str, int]]]: ...\r
19 def get_magic() -> str: ...\r
20 def get_suffixes() -> List[Tuple[str, str, int]]: ...\r
21 def init_builtin(name: str) -> types.ModuleType: ...\r
22 def init_frozen(name: str) -> types.ModuleType: ...\r
23 def is_builtin(name: str) -> int: ...\r
24 def is_frozen(name: str) -> bool: ...\r
25 def load_compiled(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...\r
26 def load_dynamic(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...\r
27 def load_module(name: str, file: str, pathname: str, description: Tuple[str, str, int]) -> types.ModuleType: ...\r
28 def load_source(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...\r
29 def lock_held() -> bool: ...\r
30 def new_module(name: str) -> types.ModuleType: ...\r
31 def release_lock() -> None: ...\r
32 \r
33 class NullImporter:\r
34     def __init__(self, path_string: str) -> None: ...\r
35     def find_module(self, fullname: str, path: str = ...) -> None: ...\r