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.

Author kj
Recipients BTaskaya, Zac Hatfield-Dodds, corona10, gvanrossum, hauntsaninja, kj, levkivskyi, serhiy.storchaka
Date 2020-11-23.07:32:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606116755.79.0.311790381555.issue42195@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-11-23 07:32:35kjsetrecipients: + kj, gvanrossum, serhiy.storchaka, levkivskyi, corona10, Zac Hatfield-Dodds, BTaskaya, hauntsaninja
2020-11-23 07:32:35kjsetmessageid: <1606116755.79.0.311790381555.issue42195@roundup.psfhosted.org>
2020-11-23 07:32:35kjlinkissue42195 messages
2020-11-23 07:32:35kjcreate