Skip to content

Commit 18309ad

Browse files
authored
gh-105430: Remove typing._Immutable unused internal helper (#105434)
1 parent e26d296 commit 18309ad

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Lib/typing.py

-11
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,6 @@ def __init_subclass__(cls, /, *args, **kwds):
419419
if '_root' not in kwds:
420420
raise TypeError("Cannot subclass special typing classes")
421421

422-
class _Immutable:
423-
"""Mixin to indicate that object should not be copied."""
424-
425-
__slots__ = ()
426-
427-
def __copy__(self):
428-
return self
429-
430-
def __deepcopy__(self, memo):
431-
return self
432-
433422

434423
class _NotIterable:
435424
"""Mixin to prevent iteration, without being compatible with Iterable.

0 commit comments

Comments
 (0)