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])
| 21 | |
| 22 | |
| 23 | def 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 | |
| 35 | class Local: |
no test coverage detected