From d642c5bbf58b42c90053dc553885445d53f247fe Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 1 Oct 2023 16:28:02 +0100 Subject: gh-110180: Remove unused `_PickleUsingNameMixin` class from `typing` (#110181) --- Lib/typing.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Lib/typing.py b/Lib/typing.py index 639be75..d1f3713 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -937,13 +937,6 @@ def _is_typevar_like(x: Any) -> bool: return isinstance(x, (TypeVar, ParamSpec)) or _is_unpacked_typevartuple(x) -class _PickleUsingNameMixin: - """Mixin enabling pickling based on self.__name__.""" - - def __reduce__(self): - return self.__name__ - - def _typevar_subst(self, arg): msg = "Parameters to generic types must be types." arg = _type_check(arg, msg, is_argument=True) -- cgit v0.12