MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / register

Method register

masfactory/utils/hook.py:17–18  ·  view source on GitHub ↗
(self, hook_key, func)

Source from the content-addressed store, hash-verified

15 self._hooks = defaultdict(list)
16
17 def register(self, hook_key, func):
18 self._hooks[hook_key].append(func)
19
20 def dispatch(self, hook_key, *args, **kwargs):
21 for func in self._hooks[hook_key]:

Callers 7

buildMethod · 0.45
buildMethod · 0.45
hook_registerMethod · 0.45
hook_registerMethod · 0.45
mainFunction · 0.45
buildMethod · 0.45
buildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected