mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
add cPickle
This commit is contained in:
19
builtins/2.7/cPickle.pyi
Normal file
19
builtins/2.7/cPickle.pyi
Normal 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): ...
|
||||
Reference in New Issue
Block a user