MCPcopy
hub / github.com/celery/celery / app_has_custom

Function app_has_custom

celery/app/base.py:95–104  ·  view source on GitHub ↗

Return true if app has customized method `attr`. Note: This is used for optimizations in cases where we know how the default behavior works, but need to account for someone using inheritance to override a method/property.

(app, attr)

Source from the content-addressed store, hash-verified

93
94
95def app_has_custom(app, attr):
96 """Return true if app has customized method `attr`.
97
98 Note:
99 This is used for optimizations in cases where we know
100 how the default behavior works, but need to account
101 for someone using inheritance to override a method/property.
102 """
103 return mro_lookup(app.__class__, attr, stop={Celery, object},
104 monkey_patched=[__name__])
105
106
107def _unpickle_appattr(reverse_name, args):

Callers 1

__init__Method · 0.85

Calls 1

mro_lookupFunction · 0.90

Tested by

no test coverage detected