➜

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.

作者 serhiy.storchaka
收信人 gvanrossum, kj, serhiy.storchaka
日期 2021-07-15.07:58:18
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1626335898.92.0.441498587725.issue44642@roundup.psfhosted.org>
In-reply-to
内容
The union type accepts any function from the typing module:

>>> import typing
>>> int | typing.cast
int | typing.cast
>>> int | typing.get_type_hints
int | typing.get_type_hints

It is a consequence of too lenient check for the typing.NewType() result (which does not work at all with PR 9951).
历史
日期 用户 动作 参数
2021-07-15 07:58:18serhiy.storchaka修改recipients: + serhiy.storchaka, gvanrossum, kj
2021-07-15 07:58:18serhiy.storchaka修改messageid: <1626335898.92.0.441498587725.issue44642@roundup.psfhosted.org>
2021-07-15 07:58:18serhiy.storchaka链接issue44642 messages
2021-07-15 07:58:18serhiy.storchaka创建