Skip to content

Commit

Permalink
🐛 Remove Awaitable from return types in generated clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkrupinski committed Jul 2, 2024
1 parent 7226cbd commit 1d91dfa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{- render_param(param) }}
{%- endfor %}
) -> typing.Annotated[
Awaitable[{{ th.type_hint(func.response_body_type, path) }}],
{{ th.type_hint(func.response_body_type, path) }},
Responses({
{%- for code, mime_map in func.responses.items() %}
'{{ code }}': {{ render_mime_map(mime_map) | indent(12, False) }},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ __all__ = [
'ApiClient',
]

from collections.abc import Awaitable

import typing_extensions as typing
from lapidary.runtime import *

Expand Down

0 comments on commit 1d91dfa

Please sign in to comment.