[issue45791] __instancecheck__ being checked on type(cls) instead of cls

Serhiy Storchaka report at bugs.python.org
Fri Nov 12 17:08:57 EST 2021


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

All typing related tests are fixed by updating types.GenericAlias.__getattribute__. So the only thing is left to make all tests passed is removing some special methods tests.

The lookup of __instancecheck__ and __subclasscheck__ was changed by Benjamin in fb6fb062e8f677dd63943f3a4b8a45c6665b3418. It looks like deliberate change. Benjamin, do you remember the reasons of the original change?

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list