Jelle Zijlstra <jelle.zijls...@gmail.com> added the comment:
As of Python 3.10, thanks to Larry Hastings inspect.signature will have a new eval_str= parameter that lets you evaluate string annotations. This isn't quite what you're asking for, though, because typing.get_type_hints does more work than eval_str does. Still, it's similar enough that I'm inclined to close this issue. ---------- nosy: +Jelle Zijlstra, larry _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37923> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com