Format: application/octet-stream
⬇ Download File (1.3 KB)
   1  import types
   2  from typing import IO, Any, Iterable, List, Optional, Tuple
   3  
   4  C_BUILTIN: int
   5  C_EXTENSION: int
   6  IMP_HOOK: int
   7  PKG_DIRECTORY: int
   8  PY_CODERESOURCE: int
   9  PY_COMPILED: int
  10  PY_FROZEN: int
  11  PY_RESOURCE: int
  12  PY_SOURCE: int
  13  SEARCH_ERROR: int
  14  
  15  def acquire_lock() -> None: ...
  16  def find_module(name: str, path: Iterable[str] = ...) -> Optional[Tuple[IO[Any], str, Tuple[str, str, int]]]: ...
  17  def get_magic() -> str: ...
  18  def get_suffixes() -> List[Tuple[str, str, int]]: ...
  19  def init_builtin(name: str) -> types.ModuleType: ...
  20  def init_frozen(name: str) -> types.ModuleType: ...
  21  def is_builtin(name: str) -> int: ...
  22  def is_frozen(name: str) -> bool: ...
  23  def load_compiled(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...
  24  def load_dynamic(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...
  25  def load_module(name: str, file: str, pathname: str, description: Tuple[str, str, int]) -> types.ModuleType: ...
  26  def load_source(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...
  27  def lock_held() -> bool: ...
  28  def new_module(name: str) -> types.ModuleType: ...
  29  def release_lock() -> None: ...
  30  
  31  class NullImporter:
  32      def __init__(self, path_string: str) -> None: ...
  33      def find_module(self, fullname: str, path: str = ...) -> None: ...
  34