]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105430: Remove `typing._Immutable` unused internal helper (#105434)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 7 Jun 2023 13:43:00 +0000 (16:43 +0300)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 13:43:00 +0000 (06:43 -0700)
Lib/typing.py

index b6c8d8a4febdb1c060669eb7ad4fd880fcad8f77..307b26f30da8ee69cc98ea7f1cbf6c858984008a 100644 (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.