Files
typeshed/stdlib/2and3/marshal.pyi
Sean Vig 1efebf78e4 Marshal dumps/loads uses bytes (#3061)
The marshal.dumps and marshal.loads functions should return and accept
bytes, respectively, rather than a string.
2019-06-16 16:17:26 +02:00

9 lines
240 B
Python

from typing import Any, IO
version: int
def dump(value: Any, file: IO[Any], version: int = ...) -> None: ...
def load(file: IO[Any]) -> Any: ...
def dumps(value: Any, version: int = ...) -> bytes: ...
def loads(string: bytes) -> Any: ...