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

Method view

src/flask/views.py:106–110  ·  view source on GitHub ↗
(**kwargs: t.Any)

Source from the content-addressed store, hash-verified

104 if cls.init_every_request:
105
106 def view(**kwargs: t.Any) -> ft.ResponseReturnValue:
107 self = view.view_class( # type: ignore[attr-defined]
108 *class_args, **class_kwargs
109 )
110 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
111
112 else:
113 self = cls(*class_args, **class_kwargs) # pyright: ignore

Callers

nothing calls this directly

Calls 1

ensure_syncMethod · 0.80

Tested by

no test coverage detected