Update copyreg from v3.14.2

This commit is contained in:
CPython Developers
2026-01-24 00:13:18 +09:00
committed by Lee Dogeon
parent dbbd921a53
commit 4c670ba5a2

5
Lib/copyreg.py vendored
View File

@@ -36,6 +36,11 @@ def pickle_union(obj):
pickle(type(int | str), pickle_union)
def pickle_super(obj):
return super, (obj.__thisclass__, obj.__self__)
pickle(super, pickle_super)
# Support for pickling new-style objects
def _reconstructor(cls, base, state):