MCPcopy Create free account
hub / github.com/celery/celery / _subclasshook_using

Method _subclasshook_using

celery/utils/abstract.py:16–20  ·  view source on GitHub ↗
(cls, parent, C)

Source from the content-addressed store, hash-verified

14
15 @classmethod
16 def _subclasshook_using(cls, parent, C):
17 return (
18 cls is parent and
19 all(_hasattr(C, attr) for attr in cls.__required_attributes__)
20 ) or NotImplemented
21
22 @classmethod
23 def register(cls, other):

Callers 2

__subclasshook__Method · 0.80
__subclasshook__Method · 0.80

Calls 1

_hasattrFunction · 0.85

Tested by

no test coverage detected