mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
12
stdlib/3/pickle.pyi
Normal file
12
stdlib/3/pickle.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
# Stubs for pickle
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from typing import Any, IO
|
||||
|
||||
def dumps(obj: Any, protocol: int = None, *,
|
||||
fix_imports: bool = True) -> bytes: ...
|
||||
def loads(p: bytes, *, fix_imports: bool = True,
|
||||
encoding: str = 'ASCII', errors: str = 'strict') -> Any: ...
|
||||
def load(file: IO[bytes], *, fix_imports: bool = True, encoding: str = 'ASCII',
|
||||
errors: str = 'strict') -> Any: ...
|
||||
Reference in New Issue
Block a user