mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
13 lines
397 B
Python
13 lines
397 B
Python
# Stubs for pickle
|
|
|
|
# NOTE: These are incomplete!
|
|
|
|
from typing import Any, IO
|
|
|
|
def dumps(obj: Any, protocol: int = ..., *,
|
|
fix_imports: bool = ...) -> bytes: ...
|
|
def loads(p: bytes, *, fix_imports: bool = ...,
|
|
encoding: str = ..., errors: str = ...) -> Any: ...
|
|
def load(file: IO[bytes], *, fix_imports: bool = ..., encoding: str = ...,
|
|
errors: str = ...) -> Any: ...
|