PyDocs

Nav

Python Runtime Services

ABCMeta.__subclasshook__

abc

classmethod of ABCMeta
  • ABCMeta.__subclasshook__(subclass)
Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__().
It should return True, False or NotImplemented.  If it returns
NotImplemented, the normal algorithm is used.  Otherwise, it
overrides the normal algorithm (and the outcome is cached).
0 Examples
No examples for abc/ABCMeta.__subclasshook__.
See Also
No see-alsos for abc/ABCMeta.__subclasshook__
0 Notes
No notes for ABCMeta.__subclasshook__