mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-110180: Remove unused _PickleUsingNameMixin
class from typing
(#110181)
This commit is contained in:
parent
15de493395
commit
d642c5bbf5
1 changed files with 0 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue