fix: add return type annotation to ui_root for mypy

This commit is contained in:
Viktor Barzin 2026-03-22 21:14:31 +02:00
parent 78e737146e
commit cf9baf4b8e
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -45,7 +45,7 @@ UI_DIR = pathlib.Path(__file__).parent.parent / "ui" / "static"
@app.get("/")
async def ui_root():
async def ui_root() -> FileResponse:
"""Serve the UI single-page app."""
return FileResponse(UI_DIR / "index.html")