22 Jul
2022
22 Jul
'22
7:45 p.m.
On second read, I'm very happy with new explicit type alias syntax. This looks like make runtime introspection of type aliases will be easier. The current introspection makes accessing original name difficult (useful for tools that need readable annotations + recursive types) and there's a number of weird edge cases with aliases and introspection. I'd be hopeful get_type_hints note here, https://docs.python.org/3.11/library/typing.html#typing.get_type_hints, on cross module edge cases will just work with new aliases.