bpo-41923: PEP 613: Add TypeAlias to typing module by east825 · Pull Request #22532 · python/cpython (original) (raw)
I've added minimal documentation, but already not sure about a couple of things:
* Should all the examples of type aliases, first of all, those in the documentation for typing module, be updated to use TypeAlias?
I don't think so. Let's wait for this to be implemented in all static checkers before we go down that road.
* I don't know how to better put, both in What's New and in the documentation for typing, that people are encouraged to use the new annotation, however, the former "implicit" syntax will continue to be supported by type checkers. PEP 613 doesn't give any deprecation timeline in this regard.
I don't think deprecation is needed at this point -- some type checkers may start enforcing it but they will communicate to their own users.