Guido van Rossum <gu...@python.org> added the comment:
I'd like to pursue this for real; other issues for callable have popped up, https://bugs.python.org/issue42195 and https://bugs.python.org/issue40494 (https://bugs.python.org/issue40398 is also related but already fixed). >From 42195 I learn that __args__ ought to be hashable. I would prefer it to >still be structured, e.g. callable[[int, str], float].__args__ should be >((int, str), float). This means we have to change typing.Callable and collections.abc.Callable as well (the latter may share code with builtins.callable, but typing.Callable should probably stay separate, but returning the same structure). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42102> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com