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

Method __init__

src/flask/ctx.py:245–249  ·  view source on GitHub ↗
(self, app: Flask)

Source from the content-addressed store, hash-verified

243 """
244
245 def __init__(self, app: Flask) -> None:
246 self.app = app
247 self.url_adapter = app.create_url_adapter(None)
248 self.g: _AppCtxGlobals = app.app_ctx_globals_class()
249 self._cv_tokens: list[contextvars.Token[AppContext]] = []
250
251 def push(self) -> None:
252 """Binds the app context to the current context."""

Callers

nothing calls this directly

Calls 1

create_url_adapterMethod · 0.80

Tested by

no test coverage detected