From b45af5eb1380d4c45004dbd73156c32af8a9800f Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sat, 22 Feb 2020 14:39:26 +0000 Subject: [PATCH] stdlib: Remove duplicated Pickler.reducer_override() The declaration was present twice. One from #3358 with the bulk Python 3.8 support, the other from #3636 with Pickle protocol 5 support. --- stdlib/2and3/pickle.pyi | 2 -- tests/stubtest_whitelists/py38.txt | 1 - 2 files changed, 3 deletions(-) diff --git a/stdlib/2and3/pickle.pyi b/stdlib/2and3/pickle.pyi index 99c047d47fe3..2b0124274a8a 100644 --- a/stdlib/2and3/pickle.pyi +++ b/stdlib/2and3/pickle.pyi @@ -82,8 +82,6 @@ class Pickler: def dump(self, obj: Any) -> None: ... def clear_memo(self) -> None: ... def persistent_id(self, obj: Any) -> Any: ... - if sys.version_info >= (3, 8): - def reducer_override(self, obj: Any) -> Any: ... class Unpickler: if sys.version_info >= (3, 8): diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index 4701a7506aaf..9aa2cd7c5c7a 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -152,7 +152,6 @@ os.setresuid os.waitid pickle.Pickler.dump pickle.Pickler.reducer_override -pickle.Pickler.reducer_override-redefinition platform.DEV_NULL profile.Profile.runcall pwd.getpwuid