Fixing ruff format.
This commit is contained in:
@@ -240,7 +240,7 @@ def _add_lifespan_to_app(app: FastAPI, new_lifespan):
|
|||||||
app: The FastAPI application instance
|
app: The FastAPI application instance
|
||||||
new_lifespan: The new lifespan context manager to add
|
new_lifespan: The new lifespan context manager to add
|
||||||
"""
|
"""
|
||||||
if hasattr(app.router, 'lifespan_context') and app.router.lifespan_context is not None:
|
if hasattr(app.router, "lifespan_context") and app.router.lifespan_context is not None:
|
||||||
# If there's already a lifespan context, combine them
|
# If there's already a lifespan context, combine them
|
||||||
existing_lifespan = app.router.lifespan_context
|
existing_lifespan = app.router.lifespan_context
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user