Message379913
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? |
|
Date |
User |
Action |
Args |
2020-10-30 04:17:55 | gvanrossum | set | recipients:
+ gvanrossum, serhiy.storchaka, levkivskyi, Zac Hatfield-Dodds, BTaskaya |
2020-10-30 04:17:55 | gvanrossum | set | messageid: <1604031475.31.0.865880797755.issue42195@roundup.psfhosted.org> |
2020-10-30 04:17:55 | gvanrossum | link | issue42195 messages |
2020-10-30 04:17:55 | gvanrossum | create | |
|