Skip to content

Commit

Permalink
pythongh-110180: Remove unused _PickleUsingNameMixin class from `ty…
Browse files Browse the repository at this point in the history
…ping` (python#110181)
  • Loading branch information
AlexWaygood authored Oct 1, 2023
1 parent 15de493 commit d642c5b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d642c5b

Please sign in to comment.