Skip to content

Commit dd8e8b0

Browse files
AlexWaygoodthunder-coding
authored andcommitted
Update docstrings of typing.Hashable, typing.List, etc., to reflect their deprecation (python#143295)
1 parent 15f79c0 commit dd8e8b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)