➜

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-14.05:33:24
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1626240804.32.0.699620622244.issue44632@roundup.psfhosted.org>
In-reply-to
内容
>>> import typing
>>> int | typing.T
int | ~T
>>> typing.T | int
typing.Union[~T, int]
>>> T2 = TypeVar('T2')
>>> int | T2
typing.Union[int, ~T2]
>>> T2 | int
typing.Union[~T2, int]

There is a support of TypeVar in type.__or__, but it does not work with user defined TypeVars, only with internal TypeVars defined in the typing module.
历史
日期 用户 动作 参数
2021-07-14 05:33:24serhiy.storchaka修改recipients: + serhiy.storchaka, gvanrossum, kj
2021-07-14 05:33:24serhiy.storchaka修改messageid: <1626240804.32.0.699620622244.issue44632@roundup.psfhosted.org>
2021-07-14 05:33:24serhiy.storchaka链接issue44632 messages
2021-07-14 05:33:24serhiy.storchaka创建