[issue34700] typing.get_type_hints doesn't know about typeshed

Guido van Rossum report at bugs.python.org
Mon May 20 11:40:49 EDT 2019


Guido van Rossum <guido at python.org> added the comment:

Yeah, the Sphinx use case is somewhat different from the originally envisioned use case for get_type_hints().  Possibly Sphinx could just directly inspect __annotations__ rather than calling get_type_hints()?  I'm not sure if there's any situation where it would need the things that get_type_hints() is supposed to take care of.

----------

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


More information about the Python-bugs-list mailing list