MCPcopy
hub / github.com/pallets/flask / wrapper

Function wrapper

src/flask/ctx.py:189–191  ·  view source on GitHub ↗
(*args: t.Any, **kwargs: t.Any)

Source from the content-addressed store, hash-verified

187 ctx = ctx.copy()
188
189 def wrapper(*args: t.Any, **kwargs: t.Any) -> t.Any:
190 with ctx:
191 return ctx.app.ensure_sync(f)(*args, **kwargs)
192
193 return update_wrapper(wrapper, f) # type: ignore[return-value]
194

Callers

nothing calls this directly

Calls 1

ensure_syncMethod · 0.80

Tested by

no test coverage detected