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

Method wrap

dash/_hooks.py:131–140  ·  view source on GitHub ↗
(func: _t.Callable[[], _t.Any])

Source from the content-addressed store, hash-verified

129 """
130
131 def wrap(func: _t.Callable[[], _t.Any]):
132 _name = name or func.__name__
133 self.add_hook(
134 "routes",
135 func,
136 priority=priority,
137 final=final,
138 data=dict(name=_name, methods=methods),
139 )
140 return func
141
142 return wrap
143

Callers 6

uFunction · 0.80
uFunction · 0.80
async-mathjax.jsFile · 0.80
eFunction · 0.80
iFunction · 0.80
plotly.min.jsFile · 0.80

Calls 1

add_hookMethod · 0.95

Tested by

no test coverage detected