]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 2 Jan 2026 11:54:41 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Jan 2026 11:54:41 +0000 (11:54 +0000)
Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (GH-143295)
(cherry picked from commit 18f3c59e57e5d30218210136060310310b10ff72)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/typing.py

index 35ffaabc719bd13d569d5cd26542d42cadfa3840..67b1ef329d59322d9ac85607ff7ee6e097cd0a9f 100644 (file)
@@ -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):