Skip to content

Commit bfb9b27

Browse files
GlassOfWhiskeymr-c
authored andcommitted
Add LoadContents union type in parser
This commit adds a `LoadContents` union type that contains all concrete classes that extend the `LoadContents` abstract class in CWL Schema SALAD.
1 parent f14ff6a commit bfb9b27

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cwl_utils/parser/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,21 @@ class NoType(ABC):
227227
"""Type Union for a CWL v1.x Directory object."""
228228
Dirent = Union[cwl_v1_0.Dirent, cwl_v1_1.Dirent, cwl_v1_2.Dirent]
229229
"""Type Union for a CWL v1.x Dirent object."""
230+
LoadContents = Union[
231+
cwl_v1_1.CommandInputParameter,
232+
cwl_v1_2.CommandInputParameter,
233+
cwl_v1_1.CommandOutputBinding,
234+
cwl_v1_2.CommandOutputBinding,
235+
cwl_v1_1.InputBinding,
236+
cwl_v1_2.InputBinding,
237+
cwl_v1_1.InputRecordField,
238+
cwl_v1_2.InputRecordField,
239+
cwl_v1_1.WorkflowInputParameter,
240+
cwl_v1_2.WorkflowInputParameter,
241+
cwl_v1_1.WorkflowStepInput,
242+
cwl_v1_2.WorkflowStepInput,
243+
]
244+
"""Type Union for a CWL v1.x LoadContents object."""
230245

231246
_Loader = Union[cwl_v1_0._Loader, cwl_v1_1._Loader, cwl_v1_2._Loader]
232247
"""Type union for a CWL v1.x _Loader."""

0 commit comments

Comments
 (0)