]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110180: Remove unused `_PickleUsingNameMixin` class from `typing` (#110181)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sun, 1 Oct 2023 15:28:02 +0000 (16:28 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Oct 2023 15:28:02 +0000 (16:28 +0100)
Lib/typing.py

index 639be75747dae0d17ed98070f7cadd901faa0731..d1f371377b88f802262106a7431c90819392b26b 100644 (file)
@@ -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)