Allowed module routes to return static file responses.

This commit is contained in:
2026-02-15 09:15:01 -05:00
parent 067b7c5a0a
commit d55bc2a762
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -38,9 +38,9 @@ class RouteMark(TypedDict):
methods: list[str] | None
# Handler type: receives RouteContext, returns web.Response or dict (auto-JSON).
# Handler type: receives RouteContext, returns a response or dict (auto-JSON).
type RouteHandler = (
"Callable[[RouteContext], Awaitable[web.Response | dict[str, Any] | None]]"
"Callable[[RouteContext], Awaitable[web.StreamResponse | dict[str, Any] | None]]"
)