Skip to content

Commit fde98a0

Browse files
committed
Correct incorrect type signatures
1 parent ee0035c commit fde98a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cwltool/expression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def next_seg(remain, obj): # type: (Text, Any) -> Any
154154

155155

156156
def evaluator(ex, jslib, obj, fullJS=False, timeout=None, force_docker_pull=False, debug=False, js_console=False):
157-
# type: (Text, Text, Dict[Text, Any], bool, int, bool, bool) -> JSON
157+
# type: (Text, Text, Dict[Text, Any], bool, int, bool, bool, bool) -> JSON
158158
m = param_re.match(ex)
159159
if m:
160160
if m.end(1)+1 == len(ex) and m.group(1) == "null":
@@ -174,7 +174,7 @@ def evaluator(ex, jslib, obj, fullJS=False, timeout=None, force_docker_pull=Fals
174174
def interpolate(scan, rootvars,
175175
timeout=None, fullJS=None, jslib="", force_docker_pull=False,
176176
debug=False, js_console=False):
177-
# type: (Text, Dict[Text, Any], int, bool, Union[str, Text], bool, bool) -> JSON
177+
# type: (Text, Dict[Text, Any], int, bool, Union[str, Text], bool, bool, bool) -> JSON
178178
scan = scan.strip()
179179
parts = []
180180
w = scanner(scan)
@@ -203,7 +203,7 @@ def interpolate(scan, rootvars,
203203

204204
def do_eval(ex, jobinput, requirements, outdir, tmpdir, resources,
205205
context=None, pull_image=True, timeout=None, force_docker_pull=False, debug=False, js_console=False):
206-
# type: (Union[dict, AnyStr], Dict[Text, Union[Dict, List, Text]], List[Dict[Text, Any]], Text, Text, Dict[Text, Union[int, Text]], Any, bool, int, bool, bool) -> Any
206+
# type: (Union[dict, AnyStr], Dict[Text, Union[Dict, List, Text]], List[Dict[Text, Any]], Text, Text, Dict[Text, Union[int, Text]], Any, bool, int, bool, bool, bool) -> Any
207207

208208
runtime = copy.copy(resources)
209209
runtime["tmpdir"] = docker_windows_path_adjust(tmpdir)

cwltool/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def receive_output(self, step, outputparms, final_output_callback, jobout, proce
336336
self.do_output_callback(final_output_callback)
337337

338338
def try_make_job(self, step, final_output_callback, **kwargs):
339-
# type: (WorkflowJobStep, Callable[[Any, Any], Any], bool, bool, **Any) -> Generator
339+
# type: (WorkflowJobStep, Callable[[Any, Any], Any], **Any) -> Generator
340340

341341
js_console = kwargs.get("js_console", False)
342342
debug = kwargs.get("debug", False)

0 commit comments

Comments
 (0)