[Python-Dev] Adding NewType() to PEP 484

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 27 21:59:02 EDT 2016


Steven D'Aprano wrote:

> TypeAlias? Because A is an alias for int?

That suggests it's just another name for the same type,
but it's not. It's a distinct type as far as the static
type checker is concerned.

-- 
Greg


More information about the Python-Dev mailing list