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 gvanrossum
Recipients BTaskaya, Zac Hatfield-Dodds, gvanrossum, levkivskyi, serhiy.storchaka
Date 2020-10-30.04:17:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604031475.31.0.865880797755.issue42195@roundup.psfhosted.org>
In-reply-to
Content
Good find! I see that typing.Callable has adopted this structure precisely to enable caching.

We should see if we can fix _collections_abc.Callable. It's still early in the life of 3.9 so I think this is reasonable.

We'll need a subclass of GenericAlias so that the repr() of Callable[[int, int], int] still comes out correctly. This is similar to how typing.Callable solves it.

Do you feel up to submitting a PR for this? Otherwise maybe Batuhan feels like contributing a fix for this?
History
Date User Action Args
2020-10-30 04:17:55gvanrossumsetrecipients: + gvanrossum, serhiy.storchaka, levkivskyi, Zac Hatfield-Dodds, BTaskaya
2020-10-30 04:17:55gvanrossumsetmessageid: <1604031475.31.0.865880797755.issue42195@roundup.psfhosted.org>
2020-10-30 04:17:55gvanrossumlinkissue42195 messages
2020-10-30 04:17:55gvanrossumcreate