|
32 | 32 | ) |
33 | 33 |
|
34 | 34 | import shellescape |
| 35 | +from mypy_extensions import mypyc_attr |
| 36 | +from ruamel.yaml.comments import CommentedMap, CommentedSeq |
35 | 37 | from schema_salad.avro.schema import Schema |
36 | 38 | from schema_salad.exceptions import ValidationException |
37 | 39 | from schema_salad.ref_resolver import file_uri, uri_file_path |
38 | 40 | from schema_salad.sourceline import SourceLine |
39 | 41 | from schema_salad.utils import json_dumps |
40 | 42 | from schema_salad.validate import validate_ex |
41 | 43 |
|
42 | | -from ruamel.yaml.comments import CommentedMap, CommentedSeq |
43 | | - |
44 | 44 | from .builder import ( |
45 | 45 | INPUT_OBJ_VOCAB, |
46 | 46 | Builder, |
@@ -208,6 +208,7 @@ def run( |
208 | 208 | self.output_callback({}, "permanentFail") |
209 | 209 |
|
210 | 210 |
|
| 211 | +@mypyc_attr(allow_interpreted_subclasses=True) |
211 | 212 | class ExpressionTool(Process): |
212 | 213 | def job( |
213 | 214 | self, |
@@ -315,6 +316,7 @@ def revmap_file(builder: Builder, outdir: str, f: CWLObjectType) -> Optional[CWL |
315 | 316 | ) |
316 | 317 |
|
317 | 318 |
|
| 319 | +@mypyc_attr(serializable=True) |
318 | 320 | class CallbackJob: |
319 | 321 | """Callback Job class, used by :py:func:`CommandLineTool.job`.""" |
320 | 322 |
|
@@ -401,6 +403,7 @@ def __init__(self, msg: str, port: CWLObjectType, **kwargs: Any) -> None: |
401 | 403 | ) |
402 | 404 |
|
403 | 405 |
|
| 406 | +@mypyc_attr(allow_interpreted_subclasses=True) |
404 | 407 | class CommandLineTool(Process): |
405 | 408 | def __init__(self, toolpath_object: CommentedMap, loadingContext: LoadingContext) -> None: |
406 | 409 | """Initialize this CommandLineTool.""" |
@@ -470,8 +473,8 @@ def make_job_runner(self, runtimeContext: RuntimeContext) -> Type[JobBase]: |
470 | 473 | ) |
471 | 474 | return CommandLineJob |
472 | 475 |
|
| 476 | + @staticmethod |
473 | 477 | def make_path_mapper( |
474 | | - self, |
475 | 478 | reffiles: List[CWLObjectType], |
476 | 479 | stagedir: str, |
477 | 480 | runtimeContext: RuntimeContext, |
|
0 commit comments