From 1547035a95d132ba1c95a768cd344a8c39fd5821 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 19 May 2021 10:57:07 -0700 Subject: [PATCH] Add _Pickler and _Unpickler to stdlib/pickle (#5506) These are the pure-Python pickle implementation, and are sometimes used by code that wants to extend or override parts of the pickling/unpickling process. --- stdlib/pickle.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/pickle.pyi b/stdlib/pickle.pyi index d063ccca7..0037091eb 100644 --- a/stdlib/pickle.pyi +++ b/stdlib/pickle.pyi @@ -169,3 +169,6 @@ FRAME: bytes def encode_long(x: int) -> bytes: ... # undocumented def decode_long(data: bytes) -> int: ... # undocumented + +_Pickler = Pickler # undocumented +_Unpickler = Unpickler # undocumented