Ken Jin <kenjin4...@gmail.com> added the comment:
Hmm I think you're right - the normal behavior in Python is for local variables to shadow global variables, and as a user I expect the same for eval in inspect.get_annotation. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42904> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com