fix: add return type annotation to ui_root for mypy
This commit is contained in:
parent
78e737146e
commit
cf9baf4b8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue