Decorator to populate the dictionary of refreshers with the current function.
(name, refreshers=CompletionRefresher.refreshers)
| 88 | |
| 89 | |
| 90 | def refresher(name, refreshers=CompletionRefresher.refreshers): |
| 91 | """Decorator to populate the dictionary of refreshers with the current |
| 92 | function. |
| 93 | """ |
| 94 | |
| 95 | def wrapper(wrapped): |
| 96 | refreshers[name] = wrapped |
| 97 | return wrapped |
| 98 | |
| 99 | return wrapper |
| 100 | |
| 101 | |
| 102 | @refresher("schemata") |