refactor: Refines flask context manager interface
Simplifies the `flask_context_manager` function by requiring a `contextvars.Context` object instead of an optional mapping of `ContextVar` instances. This change enhances type safety and streamlines the function's usage, ensuring a more consistent and clear interface for managing context variables in Flask applications. Signed-off-by: -LAN- <laipz8200@outlook.com>pull/21061/head
parent
22e945a267
commit
132a0d6683
Loading…
Reference in New Issue