[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

Serhiy Storchaka report at bugs.python.org
Sat Oct 31 06:08:32 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Would not be better to change typing.Callable?

Attributes __origin__, __args__ and __parameters__ are not documented in the typing module. They are also not mentioned in any PEP except PEP 585. So I don't know what is intention and correct value of these attributes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42195>
_______________________________________


More information about the Python-bugs-list mailing list