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

Ivan Levkivskyi levkivskyi at gmail.com
Fri May 27 14:58:26 EDT 2016


Hi,

It has been proposed to enhance the typing module with a NewType function
that allows to define simple unique types with almost zero runtime overhead.

The PR containing actual implementation and PEP 484 update is here:
https://github.com/python/typing/pull/226

Review comments are very welcome.

Best regards,
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160527/5a6d297a/attachment.html>


More information about the Python-Dev mailing list