Format: application/octet-stream
⬇ Download File (739 B)
   1  from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union
   2  
   3  _Type = TypeVar("_Type", bound=type)
   4  _Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]]
   5  
   6  __all__: List[str]
   7  
   8  def pickle(
   9      ob_type: _Type,
  10      pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]],
  11      constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...,
  12  ) -> None: ...
  13  def constructor(object: Callable[[_Reduce[_Type]], _Type]) -> None: ...
  14  def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...
  15  def remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...
  16  def clear_extension_cache() -> None: ...
  17