We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8d744 commit 8036bbdCopy full SHA for 8036bbd
stdlib/marshal.pyi
@@ -1,8 +1,9 @@
1
-from typing import IO, Any
+from _typeshed import ReadableBuffer, SupportsRead, SupportsWrite
2
+from typing import Any
3
4
version: int
5
-def dump(__value: Any, __file: IO[Any], __version: int = ...) -> None: ...
6
-def load(__file: IO[Any]) -> Any: ...
+def dump(__value: Any, __file: SupportsWrite[bytes], __version: int = ...) -> None: ...
7
+def load(__file: SupportsRead[bytes]) -> Any: ...
8
def dumps(__value: Any, __version: int = ...) -> bytes: ...
-def loads(__bytes: bytes) -> Any: ...
9
+def loads(__bytes: ReadableBuffer) -> Any: ...
0 commit comments