Skip to content

Commit 5a8907f

Browse files
committed
Update docstrings of typing.Hashable, typing.List, etc., to reflect their deprecation
1 parent 7e3a5a7 commit 5a8907f

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
@@ -1562,9 +1562,9 @@ def __init__(self, origin, nparams, *, inst=True, name=None, defaults=()):
15621562
self._nparams = nparams
15631563
self._defaults = defaults
15641564
if origin.__module__ == 'builtins':
1565-
self.__doc__ = f'A generic version of {origin.__qualname__}.'
1565+
self.__doc__ = f'Deprecated alias to {origin.__qualname__}.'
15661566
else:
1567-
self.__doc__ = f'A generic version of {origin.__module__}.{origin.__qualname__}.'
1567+
self.__doc__ = f'Deprecated alias to {origin.__module__}.{origin.__qualname__}.'
15681568

15691569
@_tp_cache
15701570
def __getitem__(self, params):

0 commit comments

Comments
 (0)