Skip to content

Commit 85b737b

Browse files
committed
Clean up some extra blank lines
1 parent a897c77 commit 85b737b

File tree

7 files changed

+1
-13
lines changed

7 files changed

+1
-13
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def _get_kwargs(
4646
json_list_prop = []
4747
for list_prop_item_data in list_prop:
4848
list_prop_item = list_prop_item_data.value
49-
5049
json_list_prop.append(list_prop_item)
5150

5251
params["list_prop"] = json_list_prop
@@ -72,7 +71,6 @@ def _get_kwargs(
7271
params["union_prop_with_ref"] = json_union_prop_with_ref
7372

7473
json_enum_prop = enum_prop.value
75-
7674
params["enum_prop"] = json_enum_prop
7775

7876
json_model_prop = model_prop.to_dict()

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def _get_kwargs(
2424
json_an_enum_value = []
2525
for an_enum_value_item_data in an_enum_value:
2626
an_enum_value_item = an_enum_value_item_data.value
27-
2827
json_an_enum_value.append(an_enum_value_item)
2928

3029
params["an_enum_value"] = json_an_enum_value
@@ -35,7 +34,6 @@ def _get_kwargs(
3534

3635
if isinstance(an_enum_value_with_null_item_data, AnEnumWithNull):
3736
an_enum_value_with_null_item = an_enum_value_with_null_item_data.value
38-
3937
else:
4038
an_enum_value_with_null_item = an_enum_value_with_null_item_data
4139

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def _get_kwargs(
1616
) -> Dict[str, Any]:
1717
params: Dict[str, Any] = {}
1818
json_int_enum = int_enum.value
19-
2019
params["int_enum"] = json_int_enum
2120

2221
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ def to_dict(self) -> Dict[str, Any]:
7676
from ..models.model_with_union_property import ModelWithUnionProperty
7777

7878
an_enum_value = self.an_enum_value.value
79-
8079
an_allof_enum_with_overridden_default = self.an_allof_enum_with_overridden_default.value
81-
8280
a_camel_date_time: str
8381

8482
if isinstance(self.a_camel_date_time, datetime.datetime):
@@ -146,7 +144,6 @@ def to_dict(self) -> Dict[str, Any]:
146144
nested_list_of_enums_item = []
147145
for nested_list_of_enums_item_item_data in nested_list_of_enums_item_data:
148146
nested_list_of_enums_item_item = nested_list_of_enums_item_item_data.value
149-
150147
nested_list_of_enums_item.append(nested_list_of_enums_item_item)
151148

152149
nested_list_of_enums.append(nested_list_of_enums_item)

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def to_dict(self) -> Dict[str, Any]:
8484
enum_properties_ref = []
8585
for componentsschemas_an_other_array_of_enum_item_data in self.enum_properties_ref:
8686
componentsschemas_an_other_array_of_enum_item = componentsschemas_an_other_array_of_enum_item_data.value
87-
8887
enum_properties_ref.append(componentsschemas_an_other_array_of_enum_item)
8988

9089
str_properties_ref = self.str_properties_ref
@@ -126,7 +125,6 @@ def to_dict(self) -> Dict[str, Any]:
126125
enum_properties = []
127126
for componentsschemas_an_array_of_enum_item_data in self.enum_properties:
128127
componentsschemas_an_array_of_enum_item = componentsschemas_an_array_of_enum_item_data.value
129-
130128
enum_properties.append(componentsschemas_an_array_of_enum_item)
131129

132130
str_properties = self.str_properties
@@ -160,7 +158,6 @@ def to_dict(self) -> Dict[str, Any]:
160158
bytestream_properties = self.bytestream_properties
161159

162160
enum_property_ref = self.enum_property_ref.value
163-
164161
str_property_ref = self.str_property_ref
165162
date_property_ref = self.date_property_ref.isoformat()
166163

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def to_dict(self) -> Dict[str, Any]:
1818
field_dict: Dict[str, Any] = {}
1919
for prop_name, prop in self.additional_properties.items():
2020
field_dict[prop_name] = prop.value
21-
2221
field_dict.update({})
2322

2423
return field_dict

openapi_python_client/templates/property_templates/enum_property.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% endif %}
2020
{% if property.required %}
2121
{{ destination }} = {{ transformed }}
22-
{% else %}
22+
{%- else %}
2323
{{ destination }}{% if declare_type %}: {{ type_string }}{% endif %} = UNSET
2424
if not isinstance({{ source }}, Unset):
2525
{{ destination }} = {{ transformed }}

0 commit comments

Comments
 (0)