Add typed parsers - #454
Draft
GlassOfWhiskey wants to merge 1 commit into
Draft
Conversation
GlassOfWhiskey
force-pushed
the
typed-parsers-2
branch
8 times, most recently
from
August 17, 2026 13:31
17f7622 to
c30b47e
Compare
Regenerate the v1.0, v1.1, and v1.2 CWL parsers using the latest Schema SALAD version, which adds type annotations to classes, loaders, and fields (`FieldType`, `EnumFieldType`, generic `Loader[FieldType]`, etc.). Adjust all downstream machinery to resolve the resulting type errors: - Update type aliases in `cwl_utils.parser` (`PrimitiveType`, `InputParameterType`, `OutputParameterType`, `CommandInputParameterType`, `CommandOutputParameterType`, `EnvironmentDef`, `CWLVersion`, `CWLTypeSchema`, `ParameterType`, `ParameterTypeOrArraySchema`) - Harden `cwl_utils.types` with `is_sequence()` and the `SrcSink` namedtuple - Fix expression refactorors, `inputs_schema_gen` (anonymous array schemas, `Sequence` doc values, `SchemaDefRequirement` cast), docker/cite extraction, and `cwl_utils.utils` - Adjust tests according to the new typing utilities
GlassOfWhiskey
force-pushed
the
typed-parsers-2
branch
from
August 17, 2026 16:29
c30b47e to
45f22c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regenerate the v1.0, v1.1, and v1.2 CWL parsers using the latest Schema SALAD version, which adds type annotations to classes, loaders, and fields (
FieldType,EnumFieldType, genericLoader[FieldType], etc.).Adjust all downstream machinery to resolve the resulting type errors:
cwl_utils.parser(PrimitiveType,InputParameterType,OutputParameterType,CommandInputParameterType,CommandOutputParameterType,EnvironmentDef,CWLVersion,CWLTypeSchema,ParameterType,ParameterTypeOrArraySchema)cwl_utils.typeswithis_sequence()and theSrcSinknamedtupleinputs_schema_gen(anonymous array schemas,Sequencedoc values,SchemaDefRequirementcast), docker/cite extraction, andcwl_utils.utils