refactor: add type hints to function signatures across multiple files

This commit is contained in:
grillazz
2026-07-13 14:25:49 +02:00
parent 51f0cebabe
commit eb8acd7b7c
10 changed files with 27 additions and 15 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
from starlette.templating import _TemplateResponse
from contextlib import asynccontextmanager
from pathlib import Path
@@ -79,7 +80,7 @@ def create_app() -> FastAPI:
register_exception_handlers(app)
@app.get("/index", response_class=HTMLResponse)
def get_index(request: Request):
def get_index(request: Request) -> _TemplateResponse:
return templates.TemplateResponse("index.html", {"request": request})
return app