mirror of https://github.com/tiangolo/fastapi.git
🎨 Fix typing annotation for semi-internal `FastAPI.add_api_route()` (#10240)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
980c88c347
commit
659350e9cd
|
|
@ -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…
Reference in New Issue