@@ -1025,7 +1025,7 @@ def _list_outputs(self):
1025
1025
if self .inputs .sort_filelist :
1026
1026
outfiles = human_order_sorted (outfiles )
1027
1027
outputs [key ].append (simplify_list (outfiles ))
1028
- if any ( val is None for val in outputs [key ]) :
1028
+ if None in outputs [key ]:
1029
1029
outputs [key ] = []
1030
1030
if len (outputs [key ]) == 0 :
1031
1031
outputs [key ] = None
@@ -1300,7 +1300,7 @@ def _list_outputs(self):
1300
1300
if self .inputs .drop_blank_outputs :
1301
1301
outputs [key ] = [x for x in outputs [key ] if x is not None ]
1302
1302
else :
1303
- if any ( val is None for val in outputs [key ]) :
1303
+ if None in outputs [key ]:
1304
1304
outputs [key ] = []
1305
1305
if len (outputs [key ]) == 0 :
1306
1306
outputs [key ] = None
@@ -2305,7 +2305,7 @@ def __init__(self, input_names, **inputs):
2305
2305
super ().__init__ (** inputs )
2306
2306
2307
2307
self ._input_names = ensure_list (input_names )
2308
- add_traits (self .inputs , list ( self ._input_names ) )
2308
+ add_traits (self .inputs , self ._input_names )
2309
2309
2310
2310
def _list_outputs (self ):
2311
2311
"""Execute this module."""
@@ -2367,7 +2367,7 @@ def __init__(self, input_names, **inputs):
2367
2367
super ().__init__ (** inputs )
2368
2368
2369
2369
self ._input_names = ensure_list (input_names )
2370
- add_traits (self .inputs , list ( self ._input_names ) )
2370
+ add_traits (self .inputs , self ._input_names )
2371
2371
2372
2372
def _list_outputs (self ):
2373
2373
"""Execute this module."""
@@ -2645,7 +2645,7 @@ def _list_outputs(self):
2645
2645
outputs [key ].append (self ._get_files_over_ssh (filledtemplate ))
2646
2646
2647
2647
# disclude where there was any invalid matches
2648
- if any ( val is None for val in outputs [key ]) :
2648
+ if None in outputs [key ]:
2649
2649
outputs [key ] = []
2650
2650
2651
2651
# no outputs is None, not empty list
0 commit comments