Skip to content

Commit d642c5b

Browse files
authored
gh-110180: Remove unused _PickleUsingNameMixin class from typing (#110181)
1 parent 15de493 commit d642c5b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/typing.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -937,13 +937,6 @@ def _is_typevar_like(x: Any) -> bool:
937937
return isinstance(x, (TypeVar, ParamSpec)) or _is_unpacked_typevartuple(x)
938938

939939

940-
class _PickleUsingNameMixin:
941-
"""Mixin enabling pickling based on self.__name__."""
942-
943-
def __reduce__(self):
944-
return self.__name__
945-
946-
947940
def _typevar_subst(self, arg):
948941
msg = "Parameters to generic types must be types."
949942
arg = _type_check(arg, msg, is_argument=True)

0 commit comments

Comments
 (0)