@@ -314,7 +314,7 @@ def plugin_input_update(pathname: str, *inputs_list: str) -> List[str]:
314314 update_dict (inputs , new_inputs )
315315
316316 # Set not used inputs
317- for ( id , attribute , _ , _ ) in self .inputs :
317+ for id , attribute , _ , _ in self .inputs :
318318 if id not in inputs :
319319 inputs [id ] = {}
320320
@@ -421,7 +421,7 @@ def toggle_help_modal(n: Optional[int], is_open: bool) -> Tuple[bool, str]:
421421 return is_open
422422
423423 # Register callback to click on configurations
424- for ( id , * _ ) in self .outputs :
424+ for id , * _ in self .outputs :
425425 internal_id = self .get_internal_output_id (id )
426426
427427 @app .callback (
@@ -470,8 +470,7 @@ def _inputs_changed(
470470 # If only filters changed, then we don't need to
471471 # calculate the results again.
472472 if last_inputs is not None :
473- for (id , attribute , filter , _ ) in self .inputs :
474-
473+ for id , attribute , filter , _ in self .inputs :
475474 if self .activate_run_selection :
476475 if id == "run" :
477476 continue
@@ -524,7 +523,7 @@ def _process_raw_outputs(
524523 # We have to add no_updates here for the mode we don't want
525524 count_outputs = 0
526525 count_mpl_outputs = 0
527- for ( _ , _ , mpl_mode ) in self .outputs :
526+ for _ , _ , mpl_mode in self .outputs :
528527 if mpl_mode :
529528 count_mpl_outputs += 1
530529 else :
@@ -600,7 +599,7 @@ def _dict_to_list(
600599 order = self .outputs # type: ignore
601600
602601 result : List [Optional [str ]] = []
603- for ( id , attribute , instance , * _ ) in order :
602+ for id , attribute , instance , * _ in order :
604603 if not input :
605604 # Instance is mlp_mode in case of outputs
606605 # Simply ignore other outputs.
@@ -637,7 +636,7 @@ def _dict_as_key(self, d: Dict[str, Any], remove_filters: bool = False) -> Optio
637636
638637 new_d = copy .deepcopy (d )
639638 if remove_filters :
640- for ( id , _ , filter , _ ) in self .inputs :
639+ for id , _ , filter , _ in self .inputs :
641640 if filter :
642641 if id in new_d :
643642 del new_d [id ]
@@ -662,10 +661,9 @@ def _cast_inputs(self, inputs: Dict[str, Dict[str, str]]) -> Dict[str, Dict[str,
662661 casted_inputs : Dict [str , Dict [str , str ]] = defaultdict (dict )
663662 for id , attributes in inputs .items ():
664663 for attribute in attributes :
665-
666664 # Find corresponding input
667665 type = None
668- for ( id_ , attribute_ , _ , type_ ) in self .inputs :
666+ for id_ , attribute_ , _ , type_ in self .inputs :
669667 if id == id_ and attribute == attribute_ :
670668 type = type_
671669 break
@@ -702,7 +700,7 @@ def _clean_inputs(self, inputs: Dict[str, Any]) -> Dict[str, Any]:
702700 """
703701 used_ids = []
704702 cleaned_inputs = {}
705- for ( id , attribute , * _ ) in self .inputs :
703+ for id , attribute , * _ in self .inputs :
706704 # Since self.inputs is ordered, we use the first occuring attribute and add
707705 # the id so it is not used again.
708706 if id not in used_ids :
@@ -1332,7 +1330,7 @@ def generate_inputs(self, **kwargs: Any) -> Dict[str, Any]:
13321330 The inputs for the run.
13331331 """
13341332 mapping = {}
1335- for ( id , attribute , * _ ) in self .inputs :
1333+ for id , attribute , * _ in self .inputs :
13361334 # Since `self.inputs` is ordered, we use the first occuring attribute and add
13371335 # the id so it is not used again.
13381336 if id not in mapping :
0 commit comments