[issue43817] Add typing.get_annotations()
Larry Hastings
report at bugs.python.org
Mon Apr 12 14:11:29 EDT 2021
Larry Hastings <larry at hastings.org> added the comment:
> I'd say just submit the PR. Shouldn't be problematic.
Okey-doke, I can do it. Though I have plenty to do at the moment, though, so it wouldn't be this week.
Is there anybody who would *enjoy* taking this on, who we could farm it out to? If not, that's no problem, I should be able to get it done before 3.10b1.
> (Have you decided what to do if the eval() fails?)
My experience is that typing.get_type_hints() doesn't catch exceptions, e.g. NameError. I assumed that typing.get_annotations() should behave the same way.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43817>
_______________________________________
More information about the Python-bugs-list
mailing list