From 33750df1d7b6efa1bf2a42fd77d1d4be11bbb502 Mon Sep 17 00:00:00 2001 From: Shantanu Date: Fri, 21 Feb 2020 20:39:30 -0800 Subject: [PATCH] marshal: fix arg name, mark positional-only args (#3759) --- stdlib/2and3/marshal.pyi | 8 ++++---- tests/stubtest_whitelists/py37.txt | 1 - tests/stubtest_whitelists/py38.txt | 4 ---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/stdlib/2and3/marshal.pyi b/stdlib/2and3/marshal.pyi index 9848f7754..b6c19b805 100644 --- a/stdlib/2and3/marshal.pyi +++ b/stdlib/2and3/marshal.pyi @@ -2,7 +2,7 @@ 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: ... +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(__bytes: bytes) -> Any: ... diff --git a/tests/stubtest_whitelists/py37.txt b/tests/stubtest_whitelists/py37.txt index 67795053b..8acba2f28 100644 --- a/tests/stubtest_whitelists/py37.txt +++ b/tests/stubtest_whitelists/py37.txt @@ -81,7 +81,6 @@ macpath.samestat macpath.split macpath.splitdrive macpath.splitext -marshal.loads multiprocessing.shared_memory os.utime pyclbr.Class.__init__ diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index 54f5f6508..31bb9835a 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -139,10 +139,6 @@ logging.handlers.MemoryHandler.__init__ lzma.LZMACompressor.compress lzma.is_check_supported macpath -marshal.dump -marshal.dumps -marshal.load -marshal.loads mmap.MADV_AUTOSYNC mmap.MADV_CORE mmap.MADV_NOCORE