Annotation map: task_name => attributes.
| 16 | |
| 17 | |
| 18 | class MapAnnotation(dict): |
| 19 | """Annotation map: task_name => attributes.""" |
| 20 | |
| 21 | def annotate_any(self): |
| 22 | try: |
| 23 | return dict(self['*']) |
| 24 | except KeyError: |
| 25 | pass |
| 26 | |
| 27 | def annotate(self, task): |
| 28 | try: |
| 29 | return dict(self[task.name]) |
| 30 | except KeyError: |
| 31 | pass |
| 32 | |
| 33 | |
| 34 | def prepare(annotations): |
no outgoing calls