summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/web.py')
-rw-r--r--fatcat_scholar/web.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 5d978d1..a54b4e4 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -5,7 +5,7 @@ So far there are few endpoints, so we just put them all here!
"""
import logging
-from typing import Optional, Any, List
+from typing import Optional, Any, List, Dict
from pydantic import BaseModel
import babel.support
@@ -271,7 +271,7 @@ app.mount("/static", StaticFiles(directory="fatcat_scholar/static"), name="stati
@app.get("/favicon.ico", include_in_schema=False)
-async def favicon():
+async def favicon() -> Any:
return FileResponse(
"fatcat_scholar/static/ia-favicon.ico", media_type="image/x-icon"
)
@@ -310,7 +310,7 @@ async def http_exception_handler(request: Request, exc: StarletteHTTPException)
status_code=exc.status_code,
)
else:
- resp = {"status_code": exc.status_code}
+ resp: Dict[str, Any] = {"status_code": exc.status_code}
if exc.detail:
resp["detail"] = exc.detail
return JSONResponse(status_code=exc.status_code, content=resp,)