消息 [397528]
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:18 | serhiy.storchaka | 修改 | recipients:
+ serhiy.storchaka, gvanrossum, kj |
| 2021-07-15 07:58:18 | serhiy.storchaka | 修改 | messageid: <1626335898.92.0.441498587725.issue44642@roundup.psfhosted.org> |
| 2021-07-15 07:58:18 | serhiy.storchaka | 链接 | issue44642 messages |
| 2021-07-15 07:58:18 | serhiy.storchaka | 创建 | |
|