@@ -1697,7 +1697,11 @@ def cltool_step_outputs_to_workflow_outputs(
16971697def generate_etool_from_expr2 (
16981698 expr : str ,
16991699 target : cwl .CommandInputParameter | cwl .WorkflowInputParameter ,
1700- inputs : Sequence [cwl .WorkflowInputParameter | cwl .CommandInputParameter ],
1700+ inputs : Sequence [
1701+ cwl .WorkflowInputParameter
1702+ | cwl .CommandInputParameter
1703+ | cwl .CommandOutputParameter
1704+ ],
17011705 self_name : str | None = None ,
17021706 process : cwl .CommandLineTool | cwl .ExpressionTool | None = None ,
17031707 extra_processes : None | (
@@ -1819,9 +1823,12 @@ def traverse_step(
18191823 input_source_id = None
18201824 source_type : None | (
18211825 MutableSequence [
1822- cwl .CommandInputParameter | cwl .WorkflowInputParameter
1826+ cwl .CommandInputParameter
1827+ | cwl .CommandOutputParameter
1828+ | cwl .WorkflowInputParameter
18231829 ]
18241830 | cwl .CommandInputParameter
1831+ | cwl .CommandOutputParameter
18251832 | cwl .WorkflowInputParameter
18261833 ) = None
18271834 if inp .source :
@@ -1910,7 +1917,9 @@ def traverse_step(
19101917
19111918def workflow_step_to_WorkflowInputParameters (
19121919 step_ins : list [cwl .WorkflowStepInput ], parent : cwl .Workflow , except_in_id : str
1913- ) -> MutableSequence [cwl .CommandInputParameter | cwl .WorkflowInputParameter ]:
1920+ ) -> MutableSequence [
1921+ cwl .CommandInputParameter | cwl .CommandOutputParameter | cwl .WorkflowInputParameter
1922+ ]:
19141923 """Create WorkflowInputParameters to match the given WorkflowStep inputs."""
19151924 params = []
19161925 for inp in step_ins :
@@ -1946,8 +1955,13 @@ def replace_step_valueFrom_expr_with_etool(
19461955 replace_etool : bool ,
19471956 source_type : None | (
19481957 cwl .CommandInputParameter
1958+ | cwl .CommandOutputParameter
19491959 | cwl .WorkflowInputParameter
1950- | MutableSequence [cwl .CommandInputParameter | cwl .WorkflowInputParameter ]
1960+ | MutableSequence [
1961+ cwl .CommandInputParameter
1962+ | cwl .CommandOutputParameter
1963+ | cwl .WorkflowInputParameter
1964+ ]
19511965 ) = None ,
19521966) -> None :
19531967 """Replace a WorkflowStep level 'valueFrom' expression with a sibling ExpressionTool step."""
0 commit comments