[issue43817] Add typing.get_annotations()

Larry Hastings report at bugs.python.org
Fri Apr 16 12:01:10 EDT 2021


Larry Hastings <larry at hastings.org> added the comment:

Assuming this function is added for Python 3.10, I propose that uses of typing.get_type_hints() in the standard library that aren't specifically dealing with type hints should change to calling this function instead.  I currently know of two sites:

   * inspect.signature()
   * functools.singledispatch()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43817>
_______________________________________


More information about the Python-bugs-list mailing list