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, kj, levkivskyi, serhiy.storchaka
Date 2020-10-31.12:50:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604148652.68.0.583625294902.issue42195@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-10-31 12:50:52kjsetrecipients: + kj, gvanrossum, serhiy.storchaka, levkivskyi, corona10, Zac Hatfield-Dodds, BTaskaya
2020-10-31 12:50:52kjsetmessageid: <1604148652.68.0.583625294902.issue42195@roundup.psfhosted.org>
2020-10-31 12:50:52kjlinkissue42195 messages
2020-10-31 12:50:52kjcreate