From 4a47751de3be9be0f38f6added1b654a22d040e2 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:54:41 +0100 Subject: [PATCH] [3.13] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (GH-143295) (#143349) Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (GH-143295) (cherry picked from commit 18f3c59e57e5d30218210136060310310b10ff72) Co-authored-by: Alex Waygood --- Lib/typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/typing.py b/Lib/typing.py index 35ffaabc719b..67b1ef329d59 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1639,9 +1639,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