This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients fish2000, levkivskyi, serhiy.storchaka
Date 2018-10-18.11:13:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
PR 9951 is a simpler way. It just sets __qualname__ (and __module__ for completeness).

>>> import typing
>>> UserId = typing.NewType('UserId', int)
>>> UserId
<function UserId at 0x7f1386ac77e0>
Date User Action Args
2018-10-18 11:13:40serhiy.storchakasetrecipients: + serhiy.storchaka, levkivskyi, fish2000
2018-10-18 11:13:40serhiy.storchakasetmessageid: <>
2018-10-18 11:13:40serhiy.storchakalinkissue34963 messages
2018-10-18 11:13:39serhiy.storchakacreate