22 May
2020
22 May
'20
10:30 a.m.
Am 22.05.20 um 15:26 schrieb Mikhail Golubev via Typing-sig:
I'm wondering about the current state of PEP 613 "Explicit Type Aliases". The document in "accepted" state, and it seems to me that it was even scheduled for Python 3.9 at some point. However now, as 3.9.0b1 is out, the name "TypeAlias" is not present in typing module. What's more, it also has been removed from typing.pyi in Typeshed lately. Mypy has no trackable plans of supporting it anytime soon either, at least judging by my question in the Gitter chat.
Just a point of clarification: typing.TypeAlias in typeshed was not related to PEP 613, just an internal helper class. Therefore it was marked as private and renamed to _Alias. - Sebastian