Format: application/octet-stream
1 from typing import IO, Any, List
2
3 HIGHEST_PROTOCOL: int
4 compatible_formats: List[str]
5 format_version: str
6
7 class Pickler:
8 def __init__(self, file: IO[str], protocol: int = ...) -> None: ...
9 def dump(self, obj: Any) -> None: ...
10 def clear_memo(self) -> None: ...
11
12 class Unpickler:
13 def __init__(self, file: IO[str]) -> None: ...
14 def load(self) -> Any: ...
15 def noload(self) -> Any: ...
16
17 def dump(obj: Any, file: IO[str], protocol: int = ...) -> None: ...
18 def dumps(obj: Any, protocol: int = ...) -> str: ...
19 def load(file: IO[str]) -> Any: ...
20 def loads(str: str) -> Any: ...
21
22 class PickleError(Exception): ...
23 class UnpicklingError(PickleError): ...
24 class BadPickleGet(UnpicklingError): ...
25 class PicklingError(PickleError): ...
26 class UnpickleableError(PicklingError): ...
27