MCPcopy
hub / github.com/plotly/dash / get_hooks

Method get_hooks

dash/_hooks.py:89–95  ·  view source on GitHub ↗
(self, hook: str)

Source from the content-addressed store, hash-verified

87 self._ns[hook] = sorted(hks, reverse=True, key=lambda h: h.priority)
88
89 def get_hooks(self, hook: str) -> _t.List[_Hook]:
90 final = self._finals.get(hook, None)
91 if final:
92 final = [final]
93 else:
94 final = []
95 return self._ns.get(hook, []) + final
96
97 def layout(self, priority: _t.Optional[int] = None, final: bool = False):
98 """

Callers 10

_setup_hooksMethod · 0.45
_setup_routesMethod · 0.45
get_layoutMethod · 0.45
_configMethod · 0.45
indexMethod · 0.45
_execute_callbackMethod · 0.45
__call__Method · 0.45
get_hooksMethod · 0.45
websocket_handlerMethod · 0.45
websocket_handlerMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected