Cleaner and non-deprecated typing for template app module. Avoids ruff errors with strict configurations.

This commit is contained in:
2026-08-31 20:14:39 +00:00
parent 8774224545
commit 475a2cdc3c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ frontend = Frontend(Path(__file__).with_name("frontend-build"))
# Lifespan block for patching apps that don't have one
LIFESPAN_BLOCK = """
@asynccontextmanager
async def lifespan(app: FastAPI):
async def lifespan(_app: FastAPI):
\"\"\"Manage app startup and shutdown resources.\"\"\"
await frontend.load()
yield