MCPcopy Index your code
hub / github.com/plotly/dash / sync_view_func

Method sync_view_func

dash/backends/_quart.py:434–439  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

432 return async_view_func
433
434 async def sync_view_func(*args, **kwargs):
435 if request is None:
436 raise RuntimeError("Quart not installed; request unavailable")
437 data = await request.get_json()
438 result = handler(**data) if data else handler()
439 return jsonify(result) # type: ignore[arg-type]
440
441 return sync_view_func
442

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
get_jsonMethod · 0.45

Tested by

no test coverage detected