[issue43817] Add typing.get_annotations()
Inada Naoki
report at bugs.python.org
Fri Apr 16 04:45:10 EDT 2021
Inada Naoki <songofacandy at gmail.com> added the comment:
Should this feature implemented in typing module? How about inspect module?
Additionally, how about adding `get_annotation_str()`, which returns str always?
Some use cases (e.g. `help(f)`) need just string. I want to skip eval() in it.
----------
nosy: +methane
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43817>
_______________________________________
More information about the Python-bugs-list
mailing list