Fix typing in server directory (#8375)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Rohit Malhotra <rohitvinodmalhotra@gmail.com>
This commit is contained in:
Graham Neubig
2025-05-13 17:27:59 -04:00
committed by GitHub
parent f9b0fcd76e
commit 154eed148f
15 changed files with 79 additions and 56 deletions

View File

@@ -1,8 +1,10 @@
from fastapi.staticfiles import StaticFiles
from starlette.responses import Response
from starlette.types import Scope
class SPAStaticFiles(StaticFiles):
async def get_response(self, path: str, scope):
async def get_response(self, path: str, scope: Scope) -> Response:
try:
return await super().get_response(path, scope)
except Exception: