Ken Jin <kenjin4...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42195>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to