]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their depreca...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Fri, 2 Jan 2026 11:31:41 +0000 (11:31 +0000)
committerGitHub <noreply@github.com>
Fri, 2 Jan 2026 11:31:41 +0000 (11:31 +0000)
Lib/typing.py

index eb0519986a895239ad463a176d97008423346cdf..1a2ef8c086f772b226b4a73186df6fcc753ac5b5 100644 (file)
@@ -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):