Skip to content

[3.12] gh-105430: Remove typing._Immutable unused internal helper (GH-105434) #105451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2023
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