MCPcopy Create free account
hub / github.com/Loping151/RoverSign / _hook_arity

Function _hook_arity

RoverSign/utils/bot_send_hook.py:67–71  ·  view source on GitHub ↗
(hook: Callable)

Source from the content-addressed store, hash-verified

65
66
67def _hook_arity(hook: Callable) -> int:
68 try:
69 return len(inspect.signature(hook).parameters)
70 except (TypeError, ValueError):
71 return 3
72
73
74def register_target_send_hook(func: Callable):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected