@@ -50,10 +50,10 @@ def get_simple_request_dict(self):
5050 simple_request ["historical_data" ] = self .historical_data
5151 # We prepare the auth
5252 if self .auth_method :
53- simple_request [
54- "auth"
55- ] = OpenPAYGOMetricsShared . generate_request_signature_from_data (
56- simple_request , self . auth_method , self . secret_key
53+ simple_request ["auth" ] = (
54+ OpenPAYGOMetricsShared . generate_request_signature_from_data (
55+ simple_request , self . auth_method , self . secret_key
56+ )
5757 )
5858 return simple_request
5959
@@ -83,10 +83,10 @@ def get_condensed_request_dict(self):
8383 raise ValueError (
8484 "Additional variables not present in the data format: " + str (data_copy )
8585 )
86- condensed_request [
87- "data"
88- ] = OpenPAYGOMetricsShared . remove_trailing_empty_elements (
89- condensed_request [ "data" ]
86+ condensed_request ["data" ] = (
87+ OpenPAYGOMetricsShared . remove_trailing_empty_elements (
88+ condensed_request [ "data" ]
89+ )
9090 )
9191 # We add the historical data
9292 historical_data_copy = copy .deepcopy (self .historical_data )
@@ -105,10 +105,10 @@ def get_condensed_request_dict(self):
105105 condensed_request ["historical_data" ].append (time_step_data )
106106 # We prepare the auth
107107 if self .auth_method :
108- condensed_request [
109- "auth"
110- ] = OpenPAYGOMetricsShared . generate_request_signature_from_data (
111- condensed_request , self . auth_method , self . secret_key
108+ condensed_request ["auth" ] = (
109+ OpenPAYGOMetricsShared . generate_request_signature_from_data (
110+ condensed_request , self . auth_method , self . secret_key
111+ )
112112 )
113113 # We replace the key names by the condensed ones
114114 condensed_request = OpenPAYGOMetricsShared .convert_dict_keys_to_condensed (
0 commit comments