@@ -208,7 +208,9 @@ def _dataconnect_endpoint_handler(
208208) -> None :
209209 # Currently, only mutationExecuted is supported
210210 if event_type != _event_type_mutation_executed :
211- raise NotImplementedError (f"Unsupported event type: { event_type } . Only { _event_type_mutation_executed } is currently supported." )
211+ raise NotImplementedError (
212+ f"Unsupported event type: { event_type } . Only { _event_type_mutation_executed } is currently supported."
213+ )
212214
213215 event_attributes = raw ._get_attributes ()
214216 event_data : _typing .Any = raw .get_data ()
@@ -223,15 +225,9 @@ def _dataconnect_endpoint_handler(
223225 if service_pattern :
224226 params = {** params , ** service_pattern .extract_matches (event_service )}
225227 if connector_pattern :
226- params = {
227- ** params ,
228- ** connector_pattern .extract_matches (event_connector )
229- }
228+ params = {** params , ** connector_pattern .extract_matches (event_connector )}
230229 if operation_pattern :
231- params = {
232- ** params ,
233- ** operation_pattern .extract_matches (event_operation )
234- }
230+ params = {** params , ** operation_pattern .extract_matches (event_operation )}
235231
236232 event_auth_type = event_attributes ["authtype" ]
237233 event_auth_id = event_attributes ["authid" ]
@@ -281,12 +277,13 @@ def mutation_executed_handler(event: Event[MutationEventData]):
281277 options = DataConnectOptions (** kwargs )
282278
283279 def on_mutation_executed_inner_decorator (func : _C1 ):
284- service_pattern = _path_pattern .PathPattern (
285- options .service ) if options .service else None
286- connector_pattern = _path_pattern .PathPattern (
287- options .connector ) if options .connector else None
288- operation_pattern = _path_pattern .PathPattern (
289- options .operation ) if options .operation else None
280+ service_pattern = _path_pattern .PathPattern (options .service ) if options .service else None
281+ connector_pattern = (
282+ _path_pattern .PathPattern (options .connector ) if options .connector else None
283+ )
284+ operation_pattern = (
285+ _path_pattern .PathPattern (options .operation ) if options .operation else None
286+ )
290287
291288 @_functools .wraps (func )
292289 def on_mutation_executed_wrapped (raw : _ce .CloudEvent ):
0 commit comments