Message381647
A possible workaround for _PosArgs in collections.abc without depending on typing could be like this:
_PosArgs = type('_PosArgs', (tuple, ), {})
This would help out the future type proposals too, because GenericAlias accepts non-type args.
__args__ of Callable in typing and collections.abc won't be == though. Because all typing types aren't equal to their builtin counterparts. Eg. Tuple[int] == tuple[int] is False. |
|
Date |
User |
Action |
Args |
2020-11-23 07:32:35 | kj | set | recipients:
+ kj, gvanrossum, serhiy.storchaka, levkivskyi, corona10, Zac Hatfield-Dodds, BTaskaya, hauntsaninja |
2020-11-23 07:32:35 | kj | set | messageid: <1606116755.79.0.311790381555.issue42195@roundup.psfhosted.org> |
2020-11-23 07:32:35 | kj | link | issue42195 messages |
2020-11-23 07:32:35 | kj | create | |
|