mirror of https://github.com/tiangolo/fastapi.git
python 3.9 not supported | on type check so handle that
This commit is contained in:
parent
262a799f7c
commit
ff94d8459f
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue