Skip to content

Commit dc16c7e

Browse files
[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 18f3c59) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 8beec4a commit dc16c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,9 +1545,9 @@ def __init__(self, origin, nparams, *, inst=True, name=None, defaults=()):
15451545
self._nparams = nparams
15461546
self._defaults = defaults
15471547
if origin.__module__ == 'builtins':
1548-
self.__doc__ = f'A generic version of {origin.__qualname__}.'
1548+
self.__doc__ = f'Deprecated alias to {origin.__qualname__}.'
15491549
else:
1550-
self.__doc__ = f'A generic version of {origin.__module__}.{origin.__qualname__}.'
1550+
self.__doc__ = f'Deprecated alias to {origin.__module__}.{origin.__qualname__}.'
15511551

15521552
@_tp_cache
15531553
def __getitem__(self, params):

0 commit comments

Comments
 (0)