From b643d7d74b8009090ca10a5202ee806942564d43 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 7 Jun 2023 12:32:36 +0300 Subject: [PATCH] gh-105430: Remove `typing._Immutable` unused internal helper --- Lib/typing.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Lib/typing.py b/Lib/typing.py index b6c8d8a4febdb1..307b26f30da8ee 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -419,17 +419,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.