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

Ivan Levkivskyi report at bugs.python.org
Fri Sep 21 16:51:15 EDT 2018


Ivan Levkivskyi <levkivskyi at gmail.com> added the comment:

I think there is also a fourth option: add a flag to `get_type_hints()` that will guard evaluation of forward references, as proposed in https://github.com/python/typing/issues/508. If the evaluation of a "forward reference" raises an error, then we keep it unevaluated (i.e. a string).

----------
nosy: +gvanrossum, levkivskyi

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


More information about the Python-bugs-list mailing list