Docstring generated for sync
and asyncio
have incorrect return type
#616
Labels
🐞bug
Something isn't working
Describe the bug
The
sync_detailed
andasyncio_detailed
functions return type Response[...]The non-detailed
sync
andasyncio
functions return Response.parsedThe docstrings do not reflect this, though, because
Response[...]
is hard coded into the template used for generating the docstring for both functions.This results in generated code where the type hint return type (Optional) is the not same as the docstring return type (Response)
To Reproduce
TODO
Expected behavior
The doctstring return type is identical to the type hint
OpenAPI Spec File
TODO
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: