Skip to content

Commit 84fd45d

Browse files
committed
fix(py) add new line after partial_api include
Otherwise formatting failed because the response_data... line started in the same line as the last char from partial_api. Compare with upstream: https://github.com/OpenAPITools/openapi-generator/blob/342febde58e655953a697320f30dd1febdf09ef5/modules/openapi-generator/src/main/resources/python/api.mustache#L36
1 parent e6fb685 commit 84fd45d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

languages/python/templates/api.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class {{classname}}:
3535
@validate_call
3636
{{#asyncio}}async {{/asyncio}}def {{operationId}}{{>partial_api_args}} -> {{{returnType}}}{{^returnType}}None{{/returnType}}:
3737
{{>partial_api}}
38+
3839
response_data = {{#asyncio}}await {{/asyncio}}self.api_client.call_api(
3940
*_param,
4041
_request_timeout=_request_timeout
@@ -49,6 +50,7 @@ class {{classname}}:
4950
@validate_call
5051
{{#asyncio}}async {{/asyncio}}def {{operationId}}_with_http_info{{>partial_api_args}} -> ApiResponse[{{{returnType}}}{{^returnType}}None{{/returnType}}]:
5152
{{>partial_api}}
53+
5254
response_data = {{#asyncio}}await {{/asyncio}}self.api_client.call_api(
5355
*_param,
5456
_request_timeout=_request_timeout
@@ -63,6 +65,7 @@ class {{classname}}:
6365
@validate_call
6466
{{#asyncio}}async {{/asyncio}}def {{operationId}}_without_preload_content{{>partial_api_args}} -> RESTResponseType:
6567
{{>partial_api}}
68+
6669
response_data = {{#asyncio}}await {{/asyncio}}self.api_client.call_api(
6770
*_param,
6871
_request_timeout=_request_timeout

0 commit comments

Comments
 (0)