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

Function release_local

src/werkzeug/local.py:23–32  ·  view source on GitHub ↗

Release the data for the current context in a :class:`Local` or :class:`LocalStack` without using a :class:`LocalManager`. This should not be needed for modern use cases, and may be removed in the future. .. versionadded:: 0.6.1

(local: Local | LocalStack[t.Any])

Source from the content-addressed store, hash-verified

21
22
23def release_local(local: Local | LocalStack[t.Any]) -> None:
24 """Release the data for the current context in a :class:`Local` or
25 :class:`LocalStack` without using a :class:`LocalManager`.
26
27 This should not be needed for modern use cases, and may be removed
28 in the future.
29
30 .. versionadded:: 0.6.1
31 """
32 local.__release_local__()
33
34
35class Local:

Callers 1

cleanupMethod · 0.85

Calls 1

__release_local__Method · 0.45

Tested by

no test coverage detected