Browse Source

🎨 Fix typing annotation for semi-internal `FastAPI.add_api_route()` (#10240)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pull/10947/head
Jamie Phan 1 year ago
committed by GitHub
parent
commit
659350e9cd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/applications.py

2
fastapi/applications.py

@ -1056,7 +1056,7 @@ class FastAPI(Starlette):
def add_api_route(
self,
path: str,
endpoint: Callable[..., Coroutine[Any, Any, Response]],
endpoint: Callable[..., Any],
*,
response_model: Any = Default(None),
status_code: Optional[int] = None,

Loading…
Cancel
Save