From 5a8907f0d0a01c8b8487248bc9e00d007840bd78 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 30 Dec 2025 13:45:30 +0000 Subject: [PATCH] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation --- Lib/typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/typing.py b/Lib/typing.py index eb0519986a8952..1a2ef8c086f772 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1562,9 +1562,9 @@ def __init__(self, origin, nparams, *, inst=True, name=None, defaults=()): 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):