MCPcopy
hub / github.com/celery/celery / annotate

Method annotate

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

Source from the content-addressed store, hash-verified

407
408 @classmethod
409 def annotate(cls):
410 for d in resolve_all_annotations(cls.app.annotations, cls):
411 for key, value in d.items():
412 if key.startswith('@'):
413 cls.add_around(key[1:], value)
414 else:
415 setattr(cls, key, value)
416
417 @classmethod
418 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