Skip to content

Commit 2a48ee1

Browse files
committed
More whitespace improvements
1 parent 5064faf commit 2a48ee1

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

end_to_end_tests/golden-record/my_test_api_client/api/defaults/defaults_tests_defaults_post.py

-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def _get_kwargs(
5151

5252
json_union_prop: Union[float, str]
5353
json_union_prop = union_prop
54-
5554
params["union_prop"] = json_union_prop
5655

5756
json_union_prop_with_ref: Union[Unset, float, str]
@@ -64,7 +63,6 @@ def _get_kwargs(
6463

6564
else:
6665
json_union_prop_with_ref = union_prop_with_ref
67-
6866
params["union_prop_with_ref"] = json_union_prop_with_ref
6967

7068
json_enum_prop = enum_prop.value

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def _get_kwargs(
2525
json_null_required = null_required.isoformat()
2626
else:
2727
json_null_required = null_required
28-
2928
params["null_required"] = json_null_required
3029

3130
json_null_not_required: Union[None, Unset, str]
@@ -37,7 +36,6 @@ def _get_kwargs(
3736
json_null_not_required = null_not_required.isoformat()
3837
else:
3938
json_null_not_required = null_not_required
40-
4139
params["null_not_required"] = json_null_not_required
4240

4341
json_not_null_not_required: Union[Unset, str] = UNSET

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

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def _get_kwargs(
3535
an_enum_value_with_null_item = an_enum_value_with_null_item_data.value
3636
else:
3737
an_enum_value_with_null_item = an_enum_value_with_null_item_data
38-
3938
json_an_enum_value_with_null.append(an_enum_value_with_null_item)
4039

4140
params["an_enum_value_with_null"] = json_an_enum_value_with_null

end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties.py

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def to_dict(self) -> Dict[str, Any]:
3434

3535
else:
3636
field_dict[prop_name] = prop
37-
3837
field_dict.update({})
3938

4039
return field_dict

openapi_python_client/templates/property_templates/union_property.py.jinja

+2-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ else:
6969
{% if ns.contains_properties_without_transform and ns.contains_modified_properties %}
7070
else:
7171
{{ destination }} = {{ source }}
72-
{% elif ns.contains_properties_without_transform %}
72+
{%- elif ns.contains_properties_without_transform %}
7373
{{ destination }} = {{ source }}
74-
{% endif %}
75-
74+
{%- endif %}
7675
{% endmacro %}

0 commit comments

Comments
 (0)