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

Method annotate

celery/app/task.py:529–535  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

527
528 @classmethod
529 def annotate(cls):
530 for d in resolve_all_annotations(cls.app.annotations, cls):
531 for key, value in d.items():
532 if key.startswith('@'):
533 cls.add_around(key[1:], value)
534 else:
535 setattr(cls, key, value)
536
537 @classmethod
538 def add_around(cls, attr, around):

Callers 3

test_annotateMethod · 0.45
bindMethod · 0.45

Calls 2

add_aroundMethod · 0.80
itemsMethod · 0.45

Tested by 2

test_annotateMethod · 0.36