python 3.9 not supported | on type check so handle that

This commit is contained in:
Purushot14 2025-03-13 00:22:40 +05:30
parent 262a799f7c
commit ff94d8459f
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class AppRouter(APIRouter):
def add_route(
self,
path: str,
endpoint: Callable[[Request], Awaitable[Response] | Response],
endpoint: Callable[[Request], Union[Awaitable[Response], Response]],
methods: list[str] | None = None,
name: str | None = None,
include_in_schema: bool = True,