add cPickle

This commit is contained in:
Matthias Kramm
2015-09-17 15:00:00 -07:00
parent 6f667fc1d5
commit 3471cfedc6

19
builtins/2.7/cPickle.pyi Normal file
View File

@@ -0,0 +1,19 @@
from typing import Any, IO
HIGHEST_PROTOCOL = ... # type: int
compatible_formats = ... # type: List[str]
format_version = ... # type: str
class Pickler: ...
class Unpickler: ...
def dump(obj: Any, file: IO[str], protocol: int = None) -> None: ...
def dumps(obj: Any, protocol: int = None) -> str: ...
def load(file: IO[str]) -> Any: ...
def loads(str: str) -> Any: ...
class PickleError(Exception): ...
class UnpicklingError(PickleError): ...
class BadPickleGet(UnpicklingError): ...
class PicklingError(PickleError): ...
class UnpickleableError(PicklingError): ...