Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Feb 19, 2021
1 parent 06ff6a2 commit f704126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastapi/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ def get_request_handler(
is_coroutine = asyncio.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]
if status_code == HTTP_204_NO_CONTENT:
actual_response_class: Type[Response] = Response
actual_response_class = Response
else:
actual_response_class = response_class.value
else:
Expand Down

0 comments on commit f704126

Please sign in to comment.