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