@@ -1022,7 +1022,7 @@ def _list_outputs(self):
1022
1022
if self .inputs .sort_filelist :
1023
1023
outfiles = human_order_sorted (outfiles )
1024
1024
outputs [key ].append (simplify_list (outfiles ))
1025
- if any ( val is None for val in outputs [key ]) :
1025
+ if None in outputs [key ]:
1026
1026
outputs [key ] = []
1027
1027
if len (outputs [key ]) == 0 :
1028
1028
outputs [key ] = None
@@ -1297,7 +1297,7 @@ def _list_outputs(self):
1297
1297
if self .inputs .drop_blank_outputs :
1298
1298
outputs [key ] = [x for x in outputs [key ] if x is not None ]
1299
1299
else :
1300
- if any ( val is None for val in outputs [key ]) :
1300
+ if None in outputs [key ]:
1301
1301
outputs [key ] = []
1302
1302
if len (outputs [key ]) == 0 :
1303
1303
outputs [key ] = None
@@ -2302,7 +2302,7 @@ def __init__(self, input_names, **inputs):
2302
2302
super ().__init__ (** inputs )
2303
2303
2304
2304
self ._input_names = ensure_list (input_names )
2305
- add_traits (self .inputs , list ( self ._input_names ) )
2305
+ add_traits (self .inputs , self ._input_names )
2306
2306
2307
2307
def _list_outputs (self ):
2308
2308
"""Execute this module."""
@@ -2364,7 +2364,7 @@ def __init__(self, input_names, **inputs):
2364
2364
super ().__init__ (** inputs )
2365
2365
2366
2366
self ._input_names = ensure_list (input_names )
2367
- add_traits (self .inputs , list ( self ._input_names ) )
2367
+ add_traits (self .inputs , self ._input_names )
2368
2368
2369
2369
def _list_outputs (self ):
2370
2370
"""Execute this module."""
@@ -2642,7 +2642,7 @@ def _list_outputs(self):
2642
2642
outputs [key ].append (self ._get_files_over_ssh (filledtemplate ))
2643
2643
2644
2644
# disclude where there was any invalid matches
2645
- if any ( val is None for val in outputs [key ]) :
2645
+ if None in outputs [key ]:
2646
2646
outputs [key ] = []
2647
2647
2648
2648
# no outputs is None, not empty list
0 commit comments