gh-105430: Remove typing._Immutable unused internal helper (#105434)

This commit is contained in:
Nikita Sobolev 2023-06-07 16:43:00 +03:00 committed by GitHub
parent e26d296984
commit 18309ad94b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.