Skip to content

Commit 0fa15e1

Browse files
author
Peter Amstutz
committed
Fix mypy
1 parent f252e75 commit 0fa15e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cwltool/job.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def __init__(self,
187187
self.generatemapper = None # type: Optional[PathMapper]
188188

189189
# 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]]]
192192
self.output_callback = cast(Callable[[Any, Any], Any], None)
193193
self.outdir = u""
194194
self.tmpdir = u""
@@ -261,7 +261,7 @@ def _execute(self,
261261
assert runtimeContext.prov_obj is not None
262262
runtimeContext.prov_obj.used_artefacts(
263263
job_order, runtimeContext.process_run_id, str(self.name))
264-
outputs = {} # type: Dict[Text,Text]
264+
outputs = {} # type: MutableMapping[Text,Any]
265265
try:
266266
stdin_path = None
267267
if self.stdin is not None:

0 commit comments

Comments
 (0)