gh-110180: Remove unused `_PickleUsingNameMixin` class from `typing` (#110181)

This commit is contained in:
Alex Waygood 2023-10-01 16:28:02 +01:00 committed by GitHub
parent 15de493395
commit d642c5bbf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View 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)