Fixing ruff format.

This commit is contained in:
Filipi Fuchter
2025-09-26 10:49:52 -03:00
parent b3a84fc772
commit 4d1915eb41

View File

@@ -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