massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / cPickle.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/cPickle.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/cPickle.pyi
new file mode 100644 (file)
index 0000000..797b0b4
--- /dev/null
@@ -0,0 +1,32 @@
+from typing import Any, IO, List\r
+\r
+HIGHEST_PROTOCOL = ...  # type: int\r
+compatible_formats = ...  # type: List[str]\r
+format_version = ...  # type: str\r
+\r
+class Pickler:\r
+    def __init__(self, file: IO[str], protocol: int = ...) -> None: ...\r
+\r
+    def dump(self, obj: Any) -> None: ...\r
+\r
+    def clear_memo(self) -> None: ...\r
+\r
+\r
+class Unpickler:\r
+    def __init__(self, file: IO[str]) -> None: ...\r
+\r
+    def load(self) -> Any: ...\r
+\r
+    def noload(self) -> Any: ...\r
+\r
+\r
+def dump(obj: Any, file: IO[str], protocol: int = ...) -> None: ...\r
+def dumps(obj: Any, protocol: int = ...) -> str: ...\r
+def load(file: IO[str]) -> Any: ...\r
+def loads(str: str) -> Any: ...\r
+\r
+class PickleError(Exception): ...\r
+class UnpicklingError(PickleError): ...\r
+class BadPickleGet(UnpicklingError): ...\r
+class PicklingError(PickleError): ...\r
+class UnpickleableError(PicklingError): ...\r