Author gvanrossum
Recipients BTaskaya, Zac Hatfield-Dodds, corona10, gvanrossum, kj, levkivskyi, serhiy.storchaka
Date 2020-11-02.04:41:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604292091.27.0.15474144934.issue42195@roundup.psfhosted.org>
In-reply-to
Content
Actually you can't really change typing.Callable's __args__, because it must be hashable, and lists aren't.

If GenericAlias doesn't cache yet, it might very well do so in the future to gain some speed when e.g. list[int] is used at runtime outside annotations, e.g. in cast(), so it will be important there too.
History
Date User Action Args
2020-11-02 04:41:31gvanrossumsetrecipients: + gvanrossum, serhiy.storchaka, levkivskyi, corona10, Zac Hatfield-Dodds, BTaskaya, kj
2020-11-02 04:41:31gvanrossumsetmessageid: <1604292091.27.0.15474144934.issue42195@roundup.psfhosted.org>
2020-11-02 04:41:31gvanrossumlinkissue42195 messages
2020-11-02 04:41:31gvanrossumcreate