From 1efebf78e488a49708693c55c0fab1a0043f88de Mon Sep 17 00:00:00 2001 From: Sean Vig Date: Sun, 16 Jun 2019 10:17:26 -0400 Subject: [PATCH] Marshal dumps/loads uses bytes (#3061) The marshal.dumps and marshal.loads functions should return and accept bytes, respectively, rather than a string. --- stdlib/2and3/marshal.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/marshal.pyi b/stdlib/2and3/marshal.pyi index 6eb3f175d..9848f7754 100644 --- a/stdlib/2and3/marshal.pyi +++ b/stdlib/2and3/marshal.pyi @@ -4,5 +4,5 @@ version: int def dump(value: Any, file: IO[Any], version: int = ...) -> None: ... def load(file: IO[Any]) -> Any: ... -def dumps(value: Any, version: int = ...) -> str: ... -def loads(string: str) -> Any: ... +def dumps(value: Any, version: int = ...) -> bytes: ... +def loads(string: bytes) -> Any: ...