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

Method __init__

src/werkzeug/local.py:208–218  ·  view source on GitHub ↗
(
        self,
        locals: None
        | (Local | LocalStack[t.Any] | t.Iterable[Local | LocalStack[t.Any]]) = None,
    )

Source from the content-addressed store, hash-verified

206 __slots__ = ("locals",)
207
208 def __init__(
209 self,
210 locals: None
211 | (Local | LocalStack[t.Any] | t.Iterable[Local | LocalStack[t.Any]]) = None,
212 ) -> None:
213 if locals is None:
214 self.locals = []
215 elif isinstance(locals, Local):
216 self.locals = [locals]
217 else:
218 self.locals = list(locals) # type: ignore[arg-type]
219
220 def cleanup(self) -> None:
221 """Release the data in the locals for this context. Call this at

Callers

nothing calls this directly

Calls 1

listFunction · 0.50

Tested by

no test coverage detected