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 serhiy.storchaka
Recipients gvanrossum, levkivskyi, serhiy.storchaka
Date 2020-05-04.15:20:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588605604.96.0.437646154985.issue40494@roundup.psfhosted.org>
In-reply-to
Content
Of course. There is more than one way to fix it:

* Make GenericAlias substituting type variables in list. It is easier and it will fix this particular case, but there will be subtle differences in __args__.
* Add a GenericAlias subclass with overridden constructor, __repr__, __getitem__, __reduce__ (like the _GenericAlias subclass added in issue40397).

I think we should first resolve issue40397 and later decide what way be better. It is not necessary to reproduce all details of _GenericAlias if the practical behavior is the same.
History
Date User Action Args
2020-05-04 15:20:04serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, levkivskyi
2020-05-04 15:20:04serhiy.storchakasetmessageid: <1588605604.96.0.437646154985.issue40494@roundup.psfhosted.org>
2020-05-04 15:20:04serhiy.storchakalinkissue40494 messages
2020-05-04 15:20:04serhiy.storchakacreate