mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
The marshal.dumps and marshal.loads functions should return and accept bytes, respectively, rather than a string.
9 lines
240 B
Python
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: ...
|