Browse Source

python 3.9 not supported | on type check so handle that

pull/13483/head
Purushot14 3 weeks ago
parent
commit
95d92579e3
  1. 4
      docs_src/custom_api_router/tutorial001.py

4
docs_src/custom_api_router/tutorial001.py

@ -92,8 +92,8 @@ class AppRouter(APIRouter):
self,
path: str,
endpoint: Callable[[Request], Union[Awaitable[Response], Response]],
methods: list[str] | None = None,
name: str | None = None,
methods: Union[List[str], None] = None,
name: Union[str, None] = None,
include_in_schema: bool = True,
) -> None:
name = f"{self.request_name_prefix}.{name}"

Loading…
Cancel
Save