|
14 | 14 | LoadingOptions = Union[ |
15 | 15 | cwl_v1_0.LoadingOptions, cwl_v1_1.LoadingOptions, cwl_v1_2.LoadingOptions |
16 | 16 | ] |
17 | | -Savable = Union[cwl_v1_0.Savable, cwl_v1_1.Savable, cwl_v1_2.Savable] |
| 17 | +Saveable = Union[cwl_v1_0.Saveable, cwl_v1_1.Saveable, cwl_v1_2.Saveable] |
18 | 18 | Workflow = Union[cwl_v1_0.Workflow, cwl_v1_1.Workflow, cwl_v1_2.Workflow] |
19 | 19 | WorkflowTypes = (cwl_v1_0.Workflow, cwl_v1_1.Workflow, cwl_v1_2.Workflow) |
20 | 20 | WorkflowStep = Union[ |
@@ -157,16 +157,16 @@ def load_document_by_yaml( |
157 | 157 |
|
158 | 158 |
|
159 | 159 | def save( |
160 | | - val: Optional[Union[Savable, MutableSequence[Savable]]], |
| 160 | + val: Optional[Union[Saveable, MutableSequence[Saveable]]], |
161 | 161 | top: bool = True, |
162 | 162 | base_url: str = "", |
163 | 163 | relative_uris: bool = True, |
164 | 164 | ) -> Any: |
165 | 165 | """Convert a given CWL object into a built-in typed object.""" |
166 | 166 | if ( |
167 | | - isinstance(val, cwl_v1_0.Savable) |
168 | | - or isinstance(val, cwl_v1_1.Savable) |
169 | | - or isinstance(val, cwl_v1_2.Savable) |
| 167 | + isinstance(val, cwl_v1_0.Saveable) |
| 168 | + or isinstance(val, cwl_v1_1.Saveable) |
| 169 | + or isinstance(val, cwl_v1_2.Saveable) |
170 | 170 | ): |
171 | 171 | return val.save(top=top, base_url=base_url, relative_uris=relative_uris) |
172 | 172 | if isinstance(val, MutableSequence): |
|
0 commit comments