Message397528
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). |
|
Date |
User |
Action |
Args |
2021-07-15 07:58:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, kj |
2021-07-15 07:58:18 | serhiy.storchaka | set | messageid: <1626335898.92.0.441498587725.issue44642@roundup.psfhosted.org> |
2021-07-15 07:58:18 | serhiy.storchaka | link | issue44642 messages |
2021-07-15 07:58:18 | serhiy.storchaka | create | |
|