(cls)
| 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): |