massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / cPickle.pyi
1 from typing import Any, IO, List\r
2 \r
3 HIGHEST_PROTOCOL = ...  # type: int\r
4 compatible_formats = ...  # type: List[str]\r
5 format_version = ...  # type: str\r
6 \r
7 class Pickler:\r
8     def __init__(self, file: IO[str], protocol: int = ...) -> None: ...\r
9 \r
10     def dump(self, obj: Any) -> None: ...\r
11 \r
12     def clear_memo(self) -> None: ...\r
13 \r
14 \r
15 class Unpickler:\r
16     def __init__(self, file: IO[str]) -> None: ...\r
17 \r
18     def load(self) -> Any: ...\r
19 \r
20     def noload(self) -> Any: ...\r
21 \r
22 \r
23 def dump(obj: Any, file: IO[str], protocol: int = ...) -> None: ...\r
24 def dumps(obj: Any, protocol: int = ...) -> str: ...\r
25 def load(file: IO[str]) -> Any: ...\r
26 def loads(str: str) -> Any: ...\r
27 \r
28 class PickleError(Exception): ...\r
29 class UnpicklingError(PickleError): ...\r
30 class BadPickleGet(UnpicklingError): ...\r
31 class PicklingError(PickleError): ...\r
32 class UnpickleableError(PicklingError): ...\r