@@ -1025,7 +1025,7 @@ def _list_outputs(self):
10251025 if self .inputs .sort_filelist :
10261026 outfiles = human_order_sorted (outfiles )
10271027 outputs [key ].append (simplify_list (outfiles ))
1028- if any ( val is None for val in outputs [key ]) :
1028+ if None in outputs [key ]:
10291029 outputs [key ] = []
10301030 if len (outputs [key ]) == 0 :
10311031 outputs [key ] = None
@@ -1300,7 +1300,7 @@ def _list_outputs(self):
13001300 if self .inputs .drop_blank_outputs :
13011301 outputs [key ] = [x for x in outputs [key ] if x is not None ]
13021302 else :
1303- if any ( val is None for val in outputs [key ]) :
1303+ if None in outputs [key ]:
13041304 outputs [key ] = []
13051305 if len (outputs [key ]) == 0 :
13061306 outputs [key ] = None
@@ -2305,7 +2305,7 @@ def __init__(self, input_names, **inputs):
23052305 super ().__init__ (** inputs )
23062306
23072307 self ._input_names = ensure_list (input_names )
2308- add_traits (self .inputs , list ( self ._input_names ) )
2308+ add_traits (self .inputs , self ._input_names )
23092309
23102310 def _list_outputs (self ):
23112311 """Execute this module."""
@@ -2367,7 +2367,7 @@ def __init__(self, input_names, **inputs):
23672367 super ().__init__ (** inputs )
23682368
23692369 self ._input_names = ensure_list (input_names )
2370- add_traits (self .inputs , list ( self ._input_names ) )
2370+ add_traits (self .inputs , self ._input_names )
23712371
23722372 def _list_outputs (self ):
23732373 """Execute this module."""
@@ -2645,7 +2645,7 @@ def _list_outputs(self):
26452645 outputs [key ].append (self ._get_files_over_ssh (filledtemplate ))
26462646
26472647 # disclude where there was any invalid matches
2648- if any ( val is None for val in outputs [key ]) :
2648+ if None in outputs [key ]:
26492649 outputs [key ] = []
26502650
26512651 # no outputs is None, not empty list
0 commit comments