Skip to content

Reformat source files using black #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions patch_api/api/estimates_api.py
Original file line number Diff line number Diff line change
@@ -258,10 +258,10 @@ def create_air_shipping_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -456,10 +456,10 @@ def create_bitcoin_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -657,10 +657,10 @@ def create_ecommerce_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -855,10 +855,10 @@ def create_ethereum_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -1053,10 +1053,10 @@ def create_flight_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -1251,10 +1251,10 @@ def create_hotel_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -1449,10 +1449,10 @@ def create_mass_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -1650,10 +1650,10 @@ def create_rail_shipping_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -1851,10 +1851,10 @@ def create_road_shipping_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -2052,10 +2052,10 @@ def create_sea_shipping_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -2250,10 +2250,10 @@ def create_shipping_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -2448,10 +2448,10 @@ def create_vehicle_estimate_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
16 changes: 8 additions & 8 deletions patch_api/api/order_line_items_api.py
Original file line number Diff line number Diff line change
@@ -268,10 +268,10 @@ def create_order_line_item_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -696,10 +696,10 @@ def update_order_line_item_with_http_info(
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
16 changes: 8 additions & 8 deletions patch_api/api/orders_api.py
Original file line number Diff line number Diff line change
@@ -433,10 +433,10 @@ def create_order_with_http_info(self, create_order_request, **kwargs): # noqa:
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
@@ -808,10 +808,10 @@ def place_order_with_http_info(self, id, **kwargs): # noqa: E501
) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["application/json"]
header_params["Content-Type"] = (
self.api_client.select_header_content_type( # noqa: E501
["application/json"]
)
) # noqa: E501

# Authentication setting
8 changes: 5 additions & 3 deletions patch_api/models/create_air_shipping_estimate_request.py
Original file line number Diff line number Diff line change
@@ -311,9 +311,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_bitcoin_estimate_request.py
Original file line number Diff line number Diff line change
@@ -196,9 +196,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_ecommerce_estimate_request.py
Original file line number Diff line number Diff line change
@@ -258,9 +258,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_ethereum_estimate_request.py
Original file line number Diff line number Diff line change
@@ -222,9 +222,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_flight_estimate_request.py
Original file line number Diff line number Diff line change
@@ -290,9 +290,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_hotel_estimate_request.py
Original file line number Diff line number Diff line change
@@ -286,9 +286,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_mass_estimate_request.py
Original file line number Diff line number Diff line change
@@ -163,9 +163,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_order_line_item_request.py
Original file line number Diff line number Diff line change
@@ -357,9 +357,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_order_request.py
Original file line number Diff line number Diff line change
@@ -445,9 +445,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_rail_shipping_estimate_request.py
Original file line number Diff line number Diff line change
@@ -389,9 +389,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_road_shipping_estimate_request.py
Original file line number Diff line number Diff line change
@@ -565,9 +565,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_sea_shipping_estimate_request.py
Original file line number Diff line number Diff line change
@@ -484,9 +484,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_shipping_estimate_request.py
Original file line number Diff line number Diff line change
@@ -258,9 +258,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_success_response.py
Original file line number Diff line number Diff line change
@@ -121,9 +121,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/create_vehicle_estimate_request.py
Original file line number Diff line number Diff line change
@@ -252,9 +252,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/delete_order_response.py
Original file line number Diff line number Diff line change
@@ -144,9 +144,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/disclaimer.py
Original file line number Diff line number Diff line change
@@ -218,9 +218,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/error_response.py
Original file line number Diff line number Diff line change
@@ -144,9 +144,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/estimate.py
Original file line number Diff line number Diff line change
@@ -223,9 +223,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/estimate_list_response.py
Original file line number Diff line number Diff line change
@@ -188,9 +188,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/estimate_response.py
Original file line number Diff line number Diff line change
@@ -144,9 +144,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/highlight.py
Original file line number Diff line number Diff line change
@@ -156,9 +156,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/inventory.py
Original file line number Diff line number Diff line change
@@ -308,9 +308,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/meta_index_object.py
Original file line number Diff line number Diff line change
@@ -109,9 +109,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order.py
Original file line number Diff line number Diff line change
@@ -519,9 +519,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order_issued_to.py
Original file line number Diff line number Diff line change
@@ -113,9 +113,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order_line_item.py
Original file line number Diff line number Diff line change
@@ -370,9 +370,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order_line_item_project.py
Original file line number Diff line number Diff line change
@@ -121,9 +121,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order_line_item_response.py
Original file line number Diff line number Diff line change
@@ -144,9 +144,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order_list_response.py
Original file line number Diff line number Diff line change
@@ -188,9 +188,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/order_response.py
Original file line number Diff line number Diff line change
@@ -144,9 +144,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/parent_technology_type.py
Original file line number Diff line number Diff line change
@@ -115,9 +115,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/photo.py
Original file line number Diff line number Diff line change
@@ -117,9 +117,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/place_order_request.py
Original file line number Diff line number Diff line change
@@ -85,9 +85,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/project.py
Original file line number Diff line number Diff line change
@@ -693,9 +693,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/project_list_response.py
Original file line number Diff line number Diff line change
@@ -188,9 +188,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/project_response.py
Original file line number Diff line number Diff line change
@@ -144,9 +144,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/sdg.py
Original file line number Diff line number Diff line change
@@ -202,9 +202,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/standard.py
Original file line number Diff line number Diff line change
@@ -156,9 +156,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/technology_type.py
Original file line number Diff line number Diff line change
@@ -161,9 +161,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/technology_type_list_response.py
Original file line number Diff line number Diff line change
@@ -148,9 +148,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
8 changes: 5 additions & 3 deletions patch_api/models/update_order_line_item_request.py
Original file line number Diff line number Diff line change
@@ -330,9 +330,11 @@ def to_dict(self):
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
lambda item: (
(item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item
),
value.items(),
)
)
6 changes: 3 additions & 3 deletions patch_api/rest.py
Original file line number Diff line number Diff line change
@@ -74,9 +74,9 @@ def __init__(self, api_key, configuration, pools_size=4, maxsize=None):

addition_pool_args = {}
if configuration.assert_hostname is not None:
addition_pool_args[
"assert_hostname"
] = configuration.assert_hostname # noqa: E501
addition_pool_args["assert_hostname"] = (
configuration.assert_hostname
) # noqa: E501

if configuration.retries is not None:
addition_pool_args["retries"] = configuration.retries
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


from setuptools import setup, find_packages # noqa: H301

NAME = "patch-api"