Skip to content

Commit e4598ae

Browse files
committed
type cleanups
1 parent 1f7360d commit e4598ae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cwltool/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
152152

153153

154154
def single_job_executor(t, job_order_object, **kwargs):
155-
# type: (Process, Dict[str,Any], str, argparse.Namespace,**Any) -> Union[str,Dict[str,str]]
155+
# type: (Process, Dict[str,Any], **Any) -> Union[str,Dict[str,str]]
156156
final_output = []
157157
final_status = []
158158

@@ -305,7 +305,7 @@ def generate_parser(toolparser, tool, namemap):
305305

306306

307307
def load_job_order(args, t, stdin, print_input_deps=False, relative_deps=False, stdout=sys.stdout):
308-
# type: (argparse.Namespace, Process, argparse.ArgumentParser, IO[Any], bool, bool, IO[Any]) -> Union[int,Tuple[Dict[str,Any],str]]
308+
# type: (argparse.Namespace, Process, IO[Any], bool, bool, IO[Any]) -> Union[int,Tuple[Dict[str,Any],str]]
309309

310310
job_order_object = None
311311

@@ -508,7 +508,7 @@ def main(argsl=None,
508508
stderr=sys.stderr,
509509
versionfunc=versionstring,
510510
job_order_object=None):
511-
# type: (List[str],Callable[...,Union[str,Dict[str,str]]],Callable[...,Process],Callable[[Dict[str,int]],Dict[str,int]],argparse.ArgumentParser,IO[Any],IO[Any],IO[Any],Callable[[],unicode]) -> int
511+
# type: (List[str], argparse.namespace, Callable[..., Union[str, Dict[str, str]]], Callable[..., Process], Callable[[Dict[str, int]], Dict[str, int]], IO[Any], IO[Any], IO[Any], Callable[[], unicode], Union[int, Tuple[Dict[str, Any], str]]) -> int
512512

513513
_logger.removeHandler(defaultStreamHandler)
514514
stderr_handler = logging.StreamHandler(stderr)

cwltool/workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def are_same_type(src, sink): # type: (Any, Any) -> bool
105105

106106

107107
def object_from_state(state, parms, frag_only, supportsMultipleInput, sourceField):
108-
# type: (Dict[str,WorkflowStateItem], List[Dict[str, Any]], bool, bool) -> Dict[str, str]
108+
# type: (Dict[str, WorkflowStateItem], List[Dict[str, Any]], bool, bool, unicode) -> Dict[str, str]
109109
inputobj = {} # type: Dict[str, str]
110110
for inp in parms:
111111
iid = inp["id"]
@@ -555,7 +555,7 @@ def setTotal(self, total): # type: (int) -> None
555555

556556

557557
def dotproduct_scatter(process, joborder, scatter_keys, output_callback, **kwargs):
558-
# type: (WorkflowJobStep, Dict[str, Any], str, List[str], Callable[..., Any], **Any) -> Generator[WorkflowJob, None, None]
558+
# type: (WorkflowJobStep, Dict[str, Any], List[str], Callable[..., Any], **Any) -> Generator[WorkflowJob, None, None]
559559
l = None
560560
for s in scatter_keys:
561561
if l is None:
@@ -581,7 +581,7 @@ def dotproduct_scatter(process, joborder, scatter_keys, output_callback, **kwarg
581581

582582

583583
def nested_crossproduct_scatter(process, joborder, scatter_keys, output_callback, **kwargs):
584-
# type: (WorkflowJobStep, Dict[str, Any], str, List[str], Callable[..., Any], **Any) -> Generator[WorkflowJob, None, None]
584+
# type: (WorkflowJobStep, Dict[str, Any], List[str], Callable[..., Any], **Any) -> Generator[WorkflowJob, None, None]
585585
scatter_key = scatter_keys[0]
586586
l = len(joborder[scatter_key])
587587
output = {} # type: Dict[str,List[str]]
@@ -623,7 +623,7 @@ def crossproduct_size(joborder, scatter_keys):
623623
return sum
624624

625625
def flat_crossproduct_scatter(process, joborder, scatter_keys, output_callback, startindex, **kwargs):
626-
# type: (WorkflowJobStep, Dict[str, Any], str, List[str], Union[ReceiveScatterOutput,Callable[..., Any]], int, **Any) -> Generator[WorkflowJob, None, None]
626+
# type: (WorkflowJobStep, Dict[str, Any], List[str], Union[ReceiveScatterOutput,Callable[..., Any]], int, **Any) -> Generator[WorkflowJob, None, None]
627627
scatter_key = scatter_keys[0]
628628
l = len(joborder[scatter_key])
629629
rc = None # type: ReceiveScatterOutput

0 commit comments

Comments
 (0)