@@ -1336,7 +1336,9 @@ def _prepare_callback(self, g, body):
1336
1336
try :
1337
1337
cb = self .callback_map [output ]
1338
1338
func = cb ["callback" ]
1339
- g .background_callback_manager = cb .get ("manager" ) or self ._background_manager
1339
+ g .background_callback_manager = (
1340
+ cb .get ("manager" ) or self ._background_manager
1341
+ )
1340
1342
g .ignore_register_page = cb .get ("long" , False )
1341
1343
1342
1344
# Add args_grouping
@@ -1352,7 +1354,9 @@ def _prepare_callback(self, g, body):
1352
1354
# check for pattern matching: list of inputs or state
1353
1355
if isinstance (s , list ):
1354
1356
for pattern_match_g in s :
1355
- update_args_group (pattern_match_g , body .get ("changedPropIds" , []))
1357
+ update_args_group (
1358
+ pattern_match_g , body .get ("changedPropIds" , [])
1359
+ )
1356
1360
update_args_group (s , body .get ("changedPropIds" , []))
1357
1361
1358
1362
g .args_grouping , g .using_args_grouping = self ._prepare_grouping (
@@ -1374,7 +1378,9 @@ def _prepare_grouping(self, data_list, indices):
1374
1378
1375
1379
if len (flat_data ) > 0 :
1376
1380
grouping = map_grouping (lambda ind : flat_data [ind ], indices )
1377
- using_grouping = not isinstance (indices , int ) and indices != list (range (grouping_len (indices )))
1381
+ using_grouping = not isinstance (indices , int ) and indices != list (
1382
+ range (grouping_len (indices ))
1383
+ )
1378
1384
else :
1379
1385
grouping , using_grouping = [], False
1380
1386
0 commit comments