[issue43817] Add inspect.get_annotations()
Eric V. Smith
report at bugs.python.org
Wed Apr 21 11:17:26 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
> And since there are definitely circumstances in which it can't return __annotations__ directly, that indicates that it should never return __annotations__ directly.
And the follow on here is that get_annotations() shouldn't set __annotations__ if it's None. I realize I'm just stating the obvious.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43817>
_______________________________________
More information about the Python-bugs-list
mailing list