(self, hook_key, *args, **kwargs)
| 18 | self._hooks[hook_key].append(func) |
| 19 | |
| 20 | def dispatch(self, hook_key, *args, **kwargs): |
| 21 | for func in self._hooks[hook_key]: |
| 22 | func(*args, **kwargs) |
| 23 | |
| 24 | def has(self, hook_key, func=None) -> bool: |
| 25 | """Check whether a hook key has any callbacks registered. |
no outgoing calls
no test coverage detected