From f5fbe02d8e12c6b6c7631019f6dc32e02a67fb05 Mon Sep 17 00:00:00 2001 From: Maxime Vaillancourt Date: Fri, 4 Oct 2024 13:49:16 -0400 Subject: [PATCH] Reformat source files using black --- patch_api/api/estimates_api.py | 96 +++++++++---------- patch_api/api/order_line_items_api.py | 16 ++-- patch_api/api/orders_api.py | 16 ++-- .../create_air_shipping_estimate_request.py | 8 +- .../models/create_bitcoin_estimate_request.py | 8 +- .../create_ecommerce_estimate_request.py | 8 +- .../create_ethereum_estimate_request.py | 8 +- .../models/create_flight_estimate_request.py | 8 +- .../models/create_hotel_estimate_request.py | 8 +- .../models/create_mass_estimate_request.py | 8 +- .../models/create_order_line_item_request.py | 8 +- patch_api/models/create_order_request.py | 8 +- .../create_rail_shipping_estimate_request.py | 8 +- .../create_road_shipping_estimate_request.py | 8 +- .../create_sea_shipping_estimate_request.py | 8 +- .../create_shipping_estimate_request.py | 8 +- patch_api/models/create_success_response.py | 8 +- .../models/create_vehicle_estimate_request.py | 8 +- patch_api/models/delete_order_response.py | 8 +- patch_api/models/disclaimer.py | 8 +- patch_api/models/error_response.py | 8 +- patch_api/models/estimate.py | 8 +- patch_api/models/estimate_list_response.py | 8 +- patch_api/models/estimate_response.py | 8 +- patch_api/models/highlight.py | 8 +- patch_api/models/inventory.py | 8 +- patch_api/models/meta_index_object.py | 8 +- patch_api/models/order.py | 8 +- patch_api/models/order_issued_to.py | 8 +- patch_api/models/order_line_item.py | 8 +- patch_api/models/order_line_item_project.py | 8 +- patch_api/models/order_line_item_response.py | 8 +- patch_api/models/order_list_response.py | 8 +- patch_api/models/order_response.py | 8 +- patch_api/models/parent_technology_type.py | 8 +- patch_api/models/photo.py | 8 +- patch_api/models/place_order_request.py | 8 +- patch_api/models/project.py | 8 +- patch_api/models/project_list_response.py | 8 +- patch_api/models/project_response.py | 8 +- patch_api/models/sdg.py | 8 +- patch_api/models/standard.py | 8 +- patch_api/models/technology_type.py | 8 +- .../models/technology_type_list_response.py | 8 +- .../models/update_order_line_item_request.py | 8 +- patch_api/rest.py | 6 +- setup.py | 1 - 47 files changed, 277 insertions(+), 194 deletions(-) diff --git a/patch_api/api/estimates_api.py b/patch_api/api/estimates_api.py index 04270eb..287423e 100644 --- a/patch_api/api/estimates_api.py +++ b/patch_api/api/estimates_api.py @@ -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 diff --git a/patch_api/api/order_line_items_api.py b/patch_api/api/order_line_items_api.py index 6b54928..16e1665 100644 --- a/patch_api/api/order_line_items_api.py +++ b/patch_api/api/order_line_items_api.py @@ -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 diff --git a/patch_api/api/orders_api.py b/patch_api/api/orders_api.py index ef095aa..fa5b293 100644 --- a/patch_api/api/orders_api.py +++ b/patch_api/api/orders_api.py @@ -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 diff --git a/patch_api/models/create_air_shipping_estimate_request.py b/patch_api/models/create_air_shipping_estimate_request.py index c132bb6..afacbe2 100644 --- a/patch_api/models/create_air_shipping_estimate_request.py +++ b/patch_api/models/create_air_shipping_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_bitcoin_estimate_request.py b/patch_api/models/create_bitcoin_estimate_request.py index 2a3be88..46789f7 100644 --- a/patch_api/models/create_bitcoin_estimate_request.py +++ b/patch_api/models/create_bitcoin_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_ecommerce_estimate_request.py b/patch_api/models/create_ecommerce_estimate_request.py index 8235fa6..e59d297 100644 --- a/patch_api/models/create_ecommerce_estimate_request.py +++ b/patch_api/models/create_ecommerce_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_ethereum_estimate_request.py b/patch_api/models/create_ethereum_estimate_request.py index 53e9228..0f71f5a 100644 --- a/patch_api/models/create_ethereum_estimate_request.py +++ b/patch_api/models/create_ethereum_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_flight_estimate_request.py b/patch_api/models/create_flight_estimate_request.py index 9e6c2bd..e01bedf 100644 --- a/patch_api/models/create_flight_estimate_request.py +++ b/patch_api/models/create_flight_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_hotel_estimate_request.py b/patch_api/models/create_hotel_estimate_request.py index db88463..dc85d50 100644 --- a/patch_api/models/create_hotel_estimate_request.py +++ b/patch_api/models/create_hotel_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_mass_estimate_request.py b/patch_api/models/create_mass_estimate_request.py index 39443be..f236871 100644 --- a/patch_api/models/create_mass_estimate_request.py +++ b/patch_api/models/create_mass_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_order_line_item_request.py b/patch_api/models/create_order_line_item_request.py index 0556b0a..745b6cc 100644 --- a/patch_api/models/create_order_line_item_request.py +++ b/patch_api/models/create_order_line_item_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_order_request.py b/patch_api/models/create_order_request.py index 735340c..bf27ddf 100644 --- a/patch_api/models/create_order_request.py +++ b/patch_api/models/create_order_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_rail_shipping_estimate_request.py b/patch_api/models/create_rail_shipping_estimate_request.py index 62d6e19..bf91797 100644 --- a/patch_api/models/create_rail_shipping_estimate_request.py +++ b/patch_api/models/create_rail_shipping_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_road_shipping_estimate_request.py b/patch_api/models/create_road_shipping_estimate_request.py index 1edbb73..783acf0 100644 --- a/patch_api/models/create_road_shipping_estimate_request.py +++ b/patch_api/models/create_road_shipping_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_sea_shipping_estimate_request.py b/patch_api/models/create_sea_shipping_estimate_request.py index 1f6af0c..cfa586f 100644 --- a/patch_api/models/create_sea_shipping_estimate_request.py +++ b/patch_api/models/create_sea_shipping_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_shipping_estimate_request.py b/patch_api/models/create_shipping_estimate_request.py index 63bacbb..a5e5c28 100644 --- a/patch_api/models/create_shipping_estimate_request.py +++ b/patch_api/models/create_shipping_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/create_success_response.py b/patch_api/models/create_success_response.py index c53d450..0c212ef 100644 --- a/patch_api/models/create_success_response.py +++ b/patch_api/models/create_success_response.py @@ -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(), ) ) diff --git a/patch_api/models/create_vehicle_estimate_request.py b/patch_api/models/create_vehicle_estimate_request.py index 2cf4e75..51ebf78 100644 --- a/patch_api/models/create_vehicle_estimate_request.py +++ b/patch_api/models/create_vehicle_estimate_request.py @@ -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(), ) ) diff --git a/patch_api/models/delete_order_response.py b/patch_api/models/delete_order_response.py index 0ce1547..caf7ec8 100644 --- a/patch_api/models/delete_order_response.py +++ b/patch_api/models/delete_order_response.py @@ -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(), ) ) diff --git a/patch_api/models/disclaimer.py b/patch_api/models/disclaimer.py index a71ed43..2e34a95 100644 --- a/patch_api/models/disclaimer.py +++ b/patch_api/models/disclaimer.py @@ -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(), ) ) diff --git a/patch_api/models/error_response.py b/patch_api/models/error_response.py index 3bdbd5f..58da57a 100644 --- a/patch_api/models/error_response.py +++ b/patch_api/models/error_response.py @@ -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(), ) ) diff --git a/patch_api/models/estimate.py b/patch_api/models/estimate.py index 7897623..11d1e13 100644 --- a/patch_api/models/estimate.py +++ b/patch_api/models/estimate.py @@ -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(), ) ) diff --git a/patch_api/models/estimate_list_response.py b/patch_api/models/estimate_list_response.py index b1abad0..563e00b 100644 --- a/patch_api/models/estimate_list_response.py +++ b/patch_api/models/estimate_list_response.py @@ -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(), ) ) diff --git a/patch_api/models/estimate_response.py b/patch_api/models/estimate_response.py index 931a064..cef6bbe 100644 --- a/patch_api/models/estimate_response.py +++ b/patch_api/models/estimate_response.py @@ -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(), ) ) diff --git a/patch_api/models/highlight.py b/patch_api/models/highlight.py index 2f1bdac..cda7674 100644 --- a/patch_api/models/highlight.py +++ b/patch_api/models/highlight.py @@ -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(), ) ) diff --git a/patch_api/models/inventory.py b/patch_api/models/inventory.py index d9b89be..2b1b0a1 100644 --- a/patch_api/models/inventory.py +++ b/patch_api/models/inventory.py @@ -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(), ) ) diff --git a/patch_api/models/meta_index_object.py b/patch_api/models/meta_index_object.py index 2512bf3..aeae014 100644 --- a/patch_api/models/meta_index_object.py +++ b/patch_api/models/meta_index_object.py @@ -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(), ) ) diff --git a/patch_api/models/order.py b/patch_api/models/order.py index e284ac3..a95d8e2 100644 --- a/patch_api/models/order.py +++ b/patch_api/models/order.py @@ -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(), ) ) diff --git a/patch_api/models/order_issued_to.py b/patch_api/models/order_issued_to.py index 32074a8..5ff9f0c 100644 --- a/patch_api/models/order_issued_to.py +++ b/patch_api/models/order_issued_to.py @@ -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(), ) ) diff --git a/patch_api/models/order_line_item.py b/patch_api/models/order_line_item.py index 01626ad..bbb9d66 100644 --- a/patch_api/models/order_line_item.py +++ b/patch_api/models/order_line_item.py @@ -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(), ) ) diff --git a/patch_api/models/order_line_item_project.py b/patch_api/models/order_line_item_project.py index e46cdcb..49bdc7c 100644 --- a/patch_api/models/order_line_item_project.py +++ b/patch_api/models/order_line_item_project.py @@ -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(), ) ) diff --git a/patch_api/models/order_line_item_response.py b/patch_api/models/order_line_item_response.py index 41c5c35..7ee7739 100644 --- a/patch_api/models/order_line_item_response.py +++ b/patch_api/models/order_line_item_response.py @@ -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(), ) ) diff --git a/patch_api/models/order_list_response.py b/patch_api/models/order_list_response.py index 9b3975b..6417d24 100644 --- a/patch_api/models/order_list_response.py +++ b/patch_api/models/order_list_response.py @@ -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(), ) ) diff --git a/patch_api/models/order_response.py b/patch_api/models/order_response.py index a387f38..edc8e95 100644 --- a/patch_api/models/order_response.py +++ b/patch_api/models/order_response.py @@ -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(), ) ) diff --git a/patch_api/models/parent_technology_type.py b/patch_api/models/parent_technology_type.py index 06a01c7..426e5ef 100644 --- a/patch_api/models/parent_technology_type.py +++ b/patch_api/models/parent_technology_type.py @@ -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(), ) ) diff --git a/patch_api/models/photo.py b/patch_api/models/photo.py index 24260cb..56a8dbc 100644 --- a/patch_api/models/photo.py +++ b/patch_api/models/photo.py @@ -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(), ) ) diff --git a/patch_api/models/place_order_request.py b/patch_api/models/place_order_request.py index 00df9f4..8810b52 100644 --- a/patch_api/models/place_order_request.py +++ b/patch_api/models/place_order_request.py @@ -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(), ) ) diff --git a/patch_api/models/project.py b/patch_api/models/project.py index 0273f2a..375ea2b 100644 --- a/patch_api/models/project.py +++ b/patch_api/models/project.py @@ -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(), ) ) diff --git a/patch_api/models/project_list_response.py b/patch_api/models/project_list_response.py index 9d0ab31..2764299 100644 --- a/patch_api/models/project_list_response.py +++ b/patch_api/models/project_list_response.py @@ -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(), ) ) diff --git a/patch_api/models/project_response.py b/patch_api/models/project_response.py index 73d7971..7116c9b 100644 --- a/patch_api/models/project_response.py +++ b/patch_api/models/project_response.py @@ -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(), ) ) diff --git a/patch_api/models/sdg.py b/patch_api/models/sdg.py index 6a11432..73495a1 100644 --- a/patch_api/models/sdg.py +++ b/patch_api/models/sdg.py @@ -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(), ) ) diff --git a/patch_api/models/standard.py b/patch_api/models/standard.py index 093f65b..be8a105 100644 --- a/patch_api/models/standard.py +++ b/patch_api/models/standard.py @@ -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(), ) ) diff --git a/patch_api/models/technology_type.py b/patch_api/models/technology_type.py index 53f1069..caf229f 100644 --- a/patch_api/models/technology_type.py +++ b/patch_api/models/technology_type.py @@ -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(), ) ) diff --git a/patch_api/models/technology_type_list_response.py b/patch_api/models/technology_type_list_response.py index 80fb997..0a92be2 100644 --- a/patch_api/models/technology_type_list_response.py +++ b/patch_api/models/technology_type_list_response.py @@ -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(), ) ) diff --git a/patch_api/models/update_order_line_item_request.py b/patch_api/models/update_order_line_item_request.py index bae2261..4dda79c 100644 --- a/patch_api/models/update_order_line_item_request.py +++ b/patch_api/models/update_order_line_item_request.py @@ -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(), ) ) diff --git a/patch_api/rest.py b/patch_api/rest.py index de2f357..96ef7bf 100644 --- a/patch_api/rest.py +++ b/patch_api/rest.py @@ -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 diff --git a/setup.py b/setup.py index ca51a2b..69552f7 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - from setuptools import setup, find_packages # noqa: H301 NAME = "patch-api"