Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit e955d49

Browse files
committed
Per previous commit
1 parent cafe1dc commit e955d49

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

cwlgen/commandlinetool.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def __init__(self, glob=None, load_contents=None, output_eval=None):
3737

3838

3939
class CommandInputParameter(Parameter):
40-
'''
40+
"""
4141
An input parameter for a :class:`cwlgen.CommandLineTool`.
42-
'''
42+
"""
4343

44-
parse_types = [("inputBinding", [CommandLineBinding])]
44+
parse_types = {"inputBinding": [CommandLineBinding]}
4545

4646
def __init__(self, param_id, label=None, secondary_files=None, param_format=None,
4747
streamable=None, doc=None, input_binding=None, default=None, param_type=None):
@@ -79,7 +79,7 @@ class CommandOutputParameter(Parameter):
7979
An output parameter for a :class:`cwlgen.CommandLineTool`.
8080
'''
8181

82-
parse_types = [("outputBinding", [CommandOutputBinding])]
82+
parse_types = {"outputBinding": [CommandOutputBinding]}
8383

8484
def __init__(self, param_id, label=None, secondary_files=None, param_format=None,
8585
streamable=None, doc=None, output_binding=None, param_type=None):
@@ -115,29 +115,29 @@ class CommandLineTool(Serializable):
115115

116116
__CLASS__ = 'CommandLineTool'
117117

118-
parse_types = [('inputs', [[CommandInputParameter]]), ("outputs", [[CommandOutputParameter]])]
118+
parse_types = {'inputs': [[CommandInputParameter]], "outputs": [[CommandOutputParameter]]}
119119
ignore_fields_on_parse = ["namespaces", "class"]
120120
ignore_fields_on_convert = ["namespaces", "class", "metadata", "requirements"]
121121

122122
def __init__(self, tool_id=None, base_command=None, label=None, doc=None,
123123
cwl_version=None, stdin=None, stderr=None, stdout=None, path=None):
124124
'''
125125
:param tool_id: unique identifier for this tool
126-
:type tool_id: STRING
126+
:type tool_id: str
127127
:param base_command: command line for the tool
128-
:type base_command: STRING | list[STRING]
128+
:type base_command: str | list[STRING]
129129
:param label: label of this tool
130-
:type label: STRING
130+
:type label: str
131131
:param doc: documentation for the tool, usually longer than the label
132-
:type doc: STRING
132+
:type doc: str
133133
:param cwl_version: version of the CWL tool
134-
:type cwl_version: STRING
134+
:type cwl_version: str
135135
:param stdin: path to a file whose contents must be piped into stdin
136-
:type stdin: STRING
136+
:type stdin: str
137137
:param stderr: capture stderr into the given file
138-
:type stderr: STRING
138+
:type stderr: str
139139
:param stdout: capture stdout into the given file
140-
:type stdout: STRING
140+
:type stdout: str
141141
142142
inputs (:class:`cwlgen.CommandInputParameter` objects),
143143
outputs (:class:`cwlgen.CommandOutputParameter` objects),

cwlgen/workflow.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ class Workflow(Serializable):
3838
__CLASS__ = 'Workflow'
3939
ignore_fields_on_parse = ["class"]
4040
ignore_fields_on_convert = ["inputs", "outputs"]
41-
parse_types = [
42-
("inputs", [[InputParameter]]),
43-
("outputs", [[WorkflowOutputParameter]]),
44-
("steps", [[WorkflowStep]])
45-
]
41+
parse_types = {
42+
"inputs": [[InputParameter]],
43+
"outputs": [[WorkflowOutputParameter]],
44+
"steps": [[WorkflowStep]],
45+
}
4646

4747
def __init__(self, workflow_id=None, label=None, doc=None, cwl_version='v1.0'):
4848
"""

0 commit comments

Comments
 (0)