From: Alex Waygood Date: Sun, 1 Oct 2023 15:28:02 +0000 (+0100) Subject: gh-110180: Remove unused `_PickleUsingNameMixin` class from `typing` (#110181) X-Git-Tag: v3.13.0a1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d642c5bbf58b42c90053dc553885445d53f247fe;p=thirdparty%2FPython%2Fcpython.git gh-110180: Remove unused `_PickleUsingNameMixin` class from `typing` (#110181) --- diff --git a/Lib/typing.py b/Lib/typing.py index 639be75747da..d1f371377b88 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)