Guido van Rossum <[email protected]> added the comment:
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. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue42195> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
