Browse Source

python 3.9 not supported | on type check so handle that

pull/13483/head
Purushot14 4 weeks ago
parent
commit
ff94d8459f
  1. 2
      docs_src/custom_api_router/tutorial001.py

2
docs_src/custom_api_router/tutorial001.py

@ -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…
Cancel
Save