Skip to content

Commit 8f894e8

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

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def _get_kwargs(
3434
params["string with num"] = string_with_num
3535

3636
json_date_prop = date_prop.isoformat()
37-
3837
params["date_prop"] = json_date_prop
3938

4039
params["float_prop"] = float_prop

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

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

5050
if isinstance(some_date, datetime.date):
5151
json_some_date = some_date.isoformat()
52-
5352
else:
5453
json_some_date = some_date.isoformat()
5554

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ def to_dict(self) -> Dict[str, Any]:
8686
a_camel_date_time = self.a_camel_date_time.isoformat()
8787

8888
a_date = self.a_date.isoformat()
89-
9089
a_nullable_date: Union[None, str]
9190

9291
if isinstance(self.a_nullable_date, datetime.date):
9392
a_nullable_date = self.a_nullable_date.isoformat()
94-
9593
else:
9694
a_nullable_date = self.a_nullable_date
9795

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
@@ -93,7 +93,6 @@ def to_dict(self) -> Dict[str, Any]:
9393
componentsschemas_an_other_array_of_date_item = (
9494
componentsschemas_an_other_array_of_date_item_data.isoformat()
9595
)
96-
9796
date_properties_ref.append(componentsschemas_an_other_array_of_date_item)
9897

9998
datetime_properties_ref = []
@@ -132,7 +131,6 @@ def to_dict(self) -> Dict[str, Any]:
132131
date_properties = []
133132
for componentsschemas_an_array_of_date_item_data in self.date_properties:
134133
componentsschemas_an_array_of_date_item = componentsschemas_an_array_of_date_item_data.isoformat()
135-
136134
date_properties.append(componentsschemas_an_array_of_date_item)
137135

138136
datetime_properties = []
@@ -160,7 +158,6 @@ def to_dict(self) -> Dict[str, Any]:
160158
enum_property_ref = self.enum_property_ref.value
161159
str_property_ref = self.str_property_ref
162160
date_property_ref = self.date_property_ref.isoformat()
163-
164161
datetime_property_ref = self.datetime_property_ref.isoformat()
165162

166163
int32_property_ref = self.int32_property_ref

openapi_python_client/templates/property_templates/date_property.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ isoparse({{ source }}).date()
1717
{% endif %}
1818
{% if property.required %}
1919
{{ destination }} = {{ transformed }}
20-
{% else %}
20+
{%- else %}
2121
{% if declare_type %}
2222
{% set type_annotation = property.get_type_string(json=True) %}
2323
{% if multipart %}{% set type_annotation = type_annotation | replace("str", "bytes") %}{% endif %}

0 commit comments

Comments
 (0)