8000 add more information to doctypes for get_dict() functions · illusional/python-cwlgen@52ef2d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52ef2d9

Browse files
committed
add more information to doctypes for get_dict() functions
1 parent 62e575f commit 52ef2d9

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

cwlgen/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def __init__(self, param_id, label=None, secondary_files=None, param_format=None
147147
def get_dict(self):
148148
'''
149149
Transform the object to a [DICT] to write CWL
150+
151+
:return: dictionnary of the object
152+
:rtype: DICT
150153
'''
151154
dict_param = {}
152155
if self.type:
@@ -203,6 +206,9 @@ def __init__(self, param_id, label=None, secondary_files=None, param_format=None
203206
def get_dict(self):
204207
'''
205208
Transform the object to a [DICT] to write CWL.
209+
210+
:return: dictionnary of the object
211+
:rtype: DICT
206212
'''
207213
dict_in = Parameter.get_dict(self)
208214
if self.default:
@@ -246,6 +252,9 @@ def __init__(self, param_id, label=None, secondary_files=None, param_format=None
246252
def get_dict(self):
247253
'''
248254
Transform the object to a [DICT] to write CWL.
255+
256+
:return: dictionnary of the object
257+
:rtype: DICT
249258
'''
250259
dict_out = Parameter.get_dict(self)
251260
if self.output_binding:
@@ -287,6 +296,9 @@ def __init__(self, load_contents=False, position=None, prefix=None, separate=Fal
287296
def get_dict(self):
288297
'''
289298
Transform the object to a [DICT] to write CWL.
299+
300+
:return: dictionnary of the object
301+
:rtype: DICT
290302
'''
291303
dict_binding = {}
292304
if self.load_contents:
@@ -329,6 +341,9 @@ def __init__(self, glob=False, load_contents=False, output_eval=None):
329341
def get_dict(self):
330342
'''
331343
Transform the object to a [DICT] to write CWL.
344+
345+
:return: dictionnary of the object
346+
:rtype: DICT
332347
'''
333348
dict_binding = {}
334349
if self.glob:

doc/source/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ Requirement
6969
:private-members:
7070
:special-members:
7171

72-
InLineJavascriptReq
72+
InlineJavascriptReq
7373
"""""""""""""""""""
7474

75-
.. autoclass:: cwlgen.InLineJavascriptReq
75+
.. autoclass:: cwlgen.InlineJavascriptReq
7676
:members:
7777
:private-members:
7878
:special-members:

0 commit comments

Comments
 (0)
0