Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,17 +425,6 @@ def __init_subclass__(cls, /, *args, **kwds):
if '_root' not in kwds:
raise TypeError("Cannot subclass special typing classes")

class _Immutable:
"""Mixin to indicate that object should not be copied."""

__slots__ = ()

def __copy__(self):
return self

def __deepcopy__(self, memo):
return self


class _NotIterable:
"""Mixin to prevent iteration, without being compatible with Iterable.
Expand Down