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 <1539861220.03.0.788709270274.issue34963@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2018-10-18 11:13:40serhiy.storchakasetrecipients: + serhiy.storchaka, levkivskyi, fish2000
2018-10-18 11:13:40serhiy.storchakasetmessageid: <1539861220.03.0.788709270274.issue34963@psf.upfronthosting.co.za>
2018-10-18 11:13:40serhiy.storchakalinkissue34963 messages
2018-10-18 11:13:39serhiy.storchakacreate