Skip to content

Commit 9c3f8b1

Browse files
committed
Remove extra whitespace
1 parent 19cc12d commit 9c3f8b1

5 files changed

Lines changed: 2 additions & 7 deletions

File tree

end_to_end_tests/golden-record/my_test_api_client/api/bodies/post_bodies_multiple.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ def _get_kwargs(
3131
if isinstance(body, File):
3232
if not isinstance(body, Unset):
3333
_kwargs["content"] = body.payload
34-
3534
headers["Content-Type"] = "application/octet-stream"
3635

3736
if isinstance(body, PostBodiesMultipleDataBody):
3837
if not isinstance(body, Unset):
3938
_kwargs["data"] = body.to_dict()
40-
4139
headers["Content-Type"] = "application/x-www-form-urlencoded"
4240

4341
if isinstance(body, PostBodiesMultipleFilesBody):

end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_post.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def _get_kwargs(
2323

2424
if not isinstance(body, Unset):
2525
_kwargs["content"] = body.payload
26-
2726
headers["Content-Type"] = "application/octet-stream"
2827

2928
_kwargs["headers"] = headers

end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def _get_kwargs(
2121
}
2222

2323
_kwargs["data"] = body.to_dict()
24-
2524
headers["Content-Type"] = "application/x-www-form-urlencoded"
2625

2726
_kwargs["headers"] = headers

end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data_inline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def _get_kwargs(
2121
}
2222

2323
_kwargs["data"] = body.to_dict()
24-
2524
headers["Content-Type"] = "application/x-www-form-urlencoded"
2625

2726
_kwargs["headers"] = headers

openapi_python_client/templates/endpoint_module.py.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _get_kwargs(
5050
{% for body in endpoint.bodies %}
5151
if isinstance(body, {{body.prop.get_type_string(no_optional=True) }}):
5252
{{ body_to_kwarg(body) | indent(8) }}
53-
{% if body.content_type == "multipart/form-data" %}
53+
{%- if body.content_type == "multipart/form-data" %}
5454
headers["Content-Type"] = "multipart/form-data; boundary=+++"
5555
{% else %}
5656
headers["Content-Type"] = "{{ body.content_type }}"
@@ -60,7 +60,7 @@ def _get_kwargs(
6060
{% elif endpoint.bodies | length == 1 %}
6161
{% set body = endpoint.bodies[0] %}
6262
{{ body_to_kwarg(body) | indent(4) }}
63-
{% if body.content_type == "multipart/form-data" %}
63+
{%- if body.content_type == "multipart/form-data" %}
6464
headers["Content-Type"] = "multipart/form-data; boundary=+++"
6565
{% else %}
6666
headers["Content-Type"] = "{{ body.content_type }}"

0 commit comments

Comments
 (0)