From: Alex Waygood Date: Fri, 2 Jan 2026 11:31:41 +0000 (+0000) Subject: Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their depreca... X-Git-Tag: v3.15.0a5~11^2~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18f3c59e57e5d30218210136060310310b10ff72;p=thirdparty%2FPython%2Fcpython.git Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (#143295) --- 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):