mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
marshal: improve bytes handling (#9047)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from typing import IO, Any
|
||||
from _typeshed import ReadableBuffer, SupportsRead, SupportsWrite
|
||||
from typing import Any
|
||||
|
||||
version: int
|
||||
|
||||
def dump(__value: Any, __file: IO[Any], __version: int = ...) -> None: ...
|
||||
def load(__file: IO[Any]) -> Any: ...
|
||||
def dump(__value: Any, __file: SupportsWrite[bytes], __version: int = ...) -> None: ...
|
||||
def load(__file: SupportsRead[bytes]) -> Any: ...
|
||||
def dumps(__value: Any, __version: int = ...) -> bytes: ...
|
||||
def loads(__bytes: bytes) -> Any: ...
|
||||
def loads(__bytes: ReadableBuffer) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user