https://github.com/python/cpython/commit/dc16c7e9a90bdab369a83e886ca933cfc4dfb6f3
commit: dc16c7e9a90bdab369a83e886ca933cfc4dfb6f3
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: AlexWaygood <[email protected]>
date: 2026-01-02T11:56:56Z
summary:

[3.14] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect 
their deprecation (GH-143295) (#143348)

Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their 
deprecation (GH-143295)
(cherry picked from commit 18f3c59e57e5d30218210136060310310b10ff72)

Co-authored-by: Alex Waygood <[email protected]>

files:
M Lib/typing.py

diff --git a/Lib/typing.py b/Lib/typing.py
index 92b78defd11976..380211183a4133 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -1545,9 +1545,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):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to