@@ -37,11 +37,11 @@ def __init__(self, glob=None, load_contents=None, output_eval=None):
37
37
38
38
39
39
class CommandInputParameter (Parameter ):
40
- '''
40
+ """
41
41
An input parameter for a :class:`cwlgen.CommandLineTool`.
42
- '''
42
+ """
43
43
44
- parse_types = [( "inputBinding" , [CommandLineBinding ])]
44
+ parse_types = { "inputBinding" : [CommandLineBinding ]}
45
45
46
46
def __init__ (self , param_id , label = None , secondary_files = None , param_format = None ,
47
47
streamable = None , doc = None , input_binding = None , default = None , param_type = None ):
@@ -79,7 +79,7 @@ class CommandOutputParameter(Parameter):
79
79
An output parameter for a :class:`cwlgen.CommandLineTool`.
80
80
'''
81
81
82
- parse_types = [( "outputBinding" , [CommandOutputBinding ])]
82
+ parse_types = { "outputBinding" : [CommandOutputBinding ]}
83
83
84
84
def __init__ (self , param_id , label = None , secondary_files = None , param_format = None ,
85
85
streamable = None , doc = None , output_binding = None , param_type = None ):
@@ -115,29 +115,29 @@ class CommandLineTool(Serializable):
115
115
116
116
__CLASS__ = 'CommandLineTool'
117
117
118
- parse_types = [( 'inputs' , [[CommandInputParameter ]]), ( "outputs" , [[CommandOutputParameter ]])]
118
+ parse_types = { 'inputs' : [[CommandInputParameter ]], "outputs" : [[CommandOutputParameter ]]}
119
119
ignore_fields_on_parse = ["namespaces" , "class" ]
120
120
ignore_fields_on_convert = ["namespaces" , "class" , "metadata" , "requirements" ]
121
121
122
122
def __init__ (self , tool_id = None , base_command = None , label = None , doc = None ,
123
123
cwl_version = None , stdin = None , stderr = None , stdout = None , path = None ):
124
124
'''
125
125
:param tool_id: unique identifier for this tool
126
- :type tool_id: STRING
126
+ :type tool_id: str
127
127
:param base_command: command line for the tool
128
- :type base_command: STRING | list[STRING]
128
+ :type base_command: str | list[STRING]
129
129
:param label: label of this tool
130
- :type label: STRING
130
+ :type label: str
131
131
:param doc: documentation for the tool, usually longer than the label
132
- :type doc: STRING
132
+ :type doc: str
133
133
:param cwl_version: version of the CWL tool
134
- :type cwl_version: STRING
134
+ :type cwl_version: str
135
135
:param stdin: path to a file whose contents must be piped into stdin
136
- :type stdin: STRING
136
+ :type stdin: str
137
137
:param stderr: capture stderr into the given file
138
- :type stderr: STRING
138
+ :type stderr: str
139
139
:param stdout: capture stdout into the given file
140
- :type stdout: STRING
140
+ :type stdout: str
141
141
142
142
inputs (:class:`cwlgen.CommandInputParameter` objects),
143
143
outputs (:class:`cwlgen.CommandOutputParameter` objects),
0 commit comments