(name: str)
| 137 | |
| 138 | |
| 139 | def register_aggregation(name: str): |
| 140 | def decorate(fn): |
| 141 | assert ( |
| 142 | name not in AGGREGATION_REGISTRY |
| 143 | ), f"aggregation named '{name}' conflicts with existing registered aggregation!" |
| 144 | |
| 145 | AGGREGATION_REGISTRY[name] = fn |
| 146 | return fn |
| 147 | |
| 148 | return decorate |
| 149 | |
| 150 | |
| 151 | def get_aggregation(name: str) -> Callable[[], Dict[str, Callable]]: |
nothing calls this directly
no outgoing calls
no test coverage detected