@@ -187,8 +187,8 @@ def __init__(self,
187
187
self .generatemapper = None # type: Optional[PathMapper]
188
188
189
189
# set in CommandLineTool.job(i)
190
- self .collect_outputs = cast (Callable [[Any ], Any ],
191
- None ) # type: Union[Callable[[Any ], Any], functools.partial[Any]]
190
+ self .collect_outputs = cast (Callable [[Text , int ], MutableMapping [ Text , Any ] ],
191
+ None ) # type: Union[Callable[[Text, int ], MutableMapping[Text, Any]] , functools.partial[MutableMapping[Text, Any] ]]
192
192
self .output_callback = cast (Callable [[Any , Any ], Any ], None )
193
193
self .outdir = u""
194
194
self .tmpdir = u""
@@ -261,7 +261,7 @@ def _execute(self,
261
261
assert runtimeContext .prov_obj is not None
262
262
runtimeContext .prov_obj .used_artefacts (
263
263
job_order , runtimeContext .process_run_id , str (self .name ))
264
- outputs = {} # type: Dict [Text,Text ]
264
+ outputs = {} # type: MutableMapping [Text,Any ]
265
265
try :
266
266
stdin_path = None
267
267
if self .stdin is not None :
@@ -328,7 +328,7 @@ def _execute(self,
328
328
self .generatemapper , self .outdir , self .builder .outdir ,
329
329
inplace_update = self .inplace_update )
330
330
331
- outputs = self .collect_outputs (self .outdir )
331
+ outputs = self .collect_outputs (self .outdir , rcode )
332
332
outputs = bytes2str_in_dicts (outputs ) # type: ignore
333
333
except OSError as e :
334
334
if e .errno == 2 :
0 commit comments