Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ try:
{% elif return_type.complex_type and async_client %}
{%- if return_type.list_type is none %}
response = await inital_response.json()
return {{ return_type.type.converted_type }}(**response) if response is not None else {{ return_type.type.converted_type }}()
return {{ return_type.type.converted_type }}(**response) if response is not None else None()
{%- else %}
response = await inital_response.json()
return [{{ return_type.list_type }}(**item) for item in response]
Expand All @@ -83,7 +83,7 @@ try:
{% elif return_type.complex_type and not async_client%}
{%- if return_type.list_type is none %}
response = inital_response.json()
return {{ return_type.type.converted_type }}(**response) if response is not None else {{ return_type.type.converted_type }}()
return {{ return_type.type.converted_type }}(**response) if response is not None else None()
{%- else %}
response = await inital_response.json()
return [{{ return_type.list_type }}(**item) for item in response]
Expand Down