Browse Source

chore: add ignore for line

pull/11508/head
reton2 12 months ago
parent
commit
e7962cbc9f
  1. 3
      fastapi/routing.py

3
fastapi/routing.py

@ -211,8 +211,7 @@ def get_request_handler(
is_coroutine = ( is_coroutine = (
asyncio.iscoroutinefunction(dependant.call) asyncio.iscoroutinefunction(dependant.call)
or callable(dependant.call) or callable(dependant.call)
and callable(dependant.call) and inspect.iscoroutinefunction(dependant.call.__call__) # type: ignore[operator]
and inspect.iscoroutinefunction(dependant.call.__call__)
) )
is_body_form = body_field and isinstance(body_field.field_info, params.Form) is_body_form = body_field and isinstance(body_field.field_info, params.Form)
if isinstance(response_class, DefaultPlaceholder): if isinstance(response_class, DefaultPlaceholder):

Loading…
Cancel
Save