Edgar Ramírez Mondragón
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
fastapi/routing.py
|
|
@ -1,4 +1,3 @@ |
|
|
|
import asyncio |
|
|
|
import dataclasses |
|
|
|
import email.message |
|
|
|
import inspect |
|
|
@ -231,7 +230,7 @@ def get_request_handler( |
|
|
|
embed_body_fields: bool = False, |
|
|
|
) -> Callable[[Request], Coroutine[Any, Any, Response]]: |
|
|
|
assert dependant.call is not None, "dependant.call must be a function" |
|
|
|
is_coroutine = asyncio.iscoroutinefunction(dependant.call) |
|
|
|
is_coroutine = inspect.iscoroutinefunction(dependant.call) |
|
|
|
is_body_form = body_field and isinstance(body_field.field_info, params.Form) |
|
|
|
if isinstance(response_class, DefaultPlaceholder): |
|
|
|
actual_response_class: Type[Response] = response_class.value |
|
|
|