Message380059
Hi, I submitted a PR for a proof-of-concept on how the code which subclasses GenericAlias might look like for everyone's consideration.
Personally, I'd lean more towards what Serhiy said and change typing.Callable rather than GenericAlias which affects many other classes' __class_getitem__. However, considering that typing.Callable has been around for years, I'm hesitant to change its __args__ which might break programs which rely on it. |
|
Date |
User |
Action |
Args |
2020-10-31 12:50:52 | kj | set | recipients:
+ kj, gvanrossum, serhiy.storchaka, levkivskyi, corona10, Zac Hatfield-Dodds, BTaskaya |
2020-10-31 12:50:52 | kj | set | messageid: <1604148652.68.0.583625294902.issue42195@roundup.psfhosted.org> |
2020-10-31 12:50:52 | kj | link | issue42195 messages |
2020-10-31 12:50:52 | kj | create | |
|