Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Fix typechecking error
Russ Garretta73c5ccdd164
diff --git a/web-backend/src/openapi.py b/web-backend/src/openapi.pyindex ee8d9fc..bf476d0 100644--- a/web-backend/src/openapi.py+++ b/web-backend/src/openapi.py@@ -1,8 +1,7 @@"""Low-budget FastAPI"""-from collections.abc import Callable, Iterable+from collections.abc import Callable, Coroutine, Iterablefrom inspect import signature-from types import CoroutineTypefrom typing import Anyfrom pydantic import BaseModel@@ -15,9 +14,7 @@ from .util import cache_forclass APIRoute(Route):- def __init__(- self, path: str, endpoint: Callable[[Request], CoroutineType[Any, Any, BaseModel]], cache=600- ):+ def __init__(self, path: str, endpoint: Callable[[Request], Coroutine[Any, Any, BaseModel]], cache=600):self._return_type = signature(endpoint).return_annotationself._doc = endpoint.__doc__