mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-105430: Remove typing._Immutable
unused internal helper (#105434)
This commit is contained in:
parent
e26d296984
commit
18309ad94b
1 changed files with 0 additions and 11 deletions
|
@ -419,17 +419,6 @@ class _Final:
|
|||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue