Guido van Rossum <guido at python.org> added the comment: Instead of introspecting types, use this library: https://github.com/ilevkivskyi/typing_inspect ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue44293> _______________________________________