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

Method decorator

src/flask/cli.py:422–425  ·  view source on GitHub ↗
(f: t.Callable[..., t.Any])

Source from the content-addressed store, hash-verified

420 wrap_for_ctx = kwargs.pop("with_appcontext", True)
421
422 def decorator(f: t.Callable[..., t.Any]) -> click.Command:
423 if wrap_for_ctx:
424 f = with_appcontext(f)
425 return super(AppGroup, self).command(*args, **kwargs)(f) # type: ignore[no-any-return]
426
427 return decorator
428

Callers

nothing calls this directly

Calls 2

with_appcontextFunction · 0.85
commandMethod · 0.80

Tested by

no test coverage detected