From 18f3c59e57e5d30218210136060310310b10ff72 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 2 Jan 2026 11:31:41 +0000 Subject: [PATCH] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (#143295) --- Lib/typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/typing.py b/Lib/typing.py index eb0519986a89..1a2ef8c086f7 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1562,9 +1562,9 @@ class _SpecialGenericAlias(_NotIterable, _BaseGenericAlias, _root=True): self._nparams = nparams self._defaults = defaults if origin.__module__ == 'builtins': - self.__doc__ = f'A generic version of {origin.__qualname__}.' + self.__doc__ = f'Deprecated alias to {origin.__qualname__}.' else: - self.__doc__ = f'A generic version of {origin.__module__}.{origin.__qualname__}.' + self.__doc__ = f'Deprecated alias to {origin.__module__}.{origin.__qualname__}.' @_tp_cache def __getitem__(self, params): -- 2.47.3