Skip to content

Commit

Permalink
Clean up some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanty committed May 18, 2024
1 parent fec5d98 commit 9ab15b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ def to_multipart(self) -> Dict[str, Any]:
some_nullable_number = UNSET
elif isinstance(self.some_nullable_number, float):
some_nullable_number = (None, str(self.some_nullable_number).encode(), "text/plain")

else:
some_nullable_number = (None, str(self.some_nullable_number).encode(), "text/plain")

Expand All @@ -212,7 +211,6 @@ def to_multipart(self) -> Dict[str, Any]:
some_array_type_0_item = some_array_type_0_item_data.to_dict()
_temp_some_array.append(some_array_type_0_item)
some_array = (None, json.dumps(_temp_some_array).encode(), "application/json")

else:
some_array = (None, str(self.some_array).encode(), "text/plain")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ elif isinstance({{ source }}, {{ inner_property.get_instance_type_string() }}):
else:
{% endif %}
{% import "property_templates/" + inner_property.template as inner_template %}
{{ inner_template.transform_multipart(inner_property, source, destination) | indent(4) }}
{{ inner_template.transform_multipart(inner_property, source, destination) | indent(4) | trim }}
{% endfor %}
{% endmacro %}

0 comments on commit 9ab15b3

Please sign in to comment.