Closed
Description
🚀 Feature
Allow aliasing like T = None
.
Pitch
None
as a type on its own, generally does not make sense except as a singleton type and it is used for optional types, which is just an union including None
. But in some corner case, None
is not a proper name (ex. cases where Void or Null or Unit matches better) and would need to be aliased and will still be used like None
is.
I don’t know if there is anything against it in any PEP.