common-workflow-language / schema_salad

Semantic Annotations for Linked Avro Data
https://www.commonwl.org/v1.2/SchemaSalad.html
Apache License 2.0
72 stars 62 forks source link

check for both UnionSchema and NamedUnionSchema #846

Closed tetron closed 2 months ago

tetron commented 2 months ago

NamedUnionSchema isn't a subclass of UnionSchema, and the first thing I tried (making NamedUnionSchema a subclass of both UnionSchema and NamedSchema) didn't work because mypyc didn't like multiple inheritance.

This should fix https://github.com/common-workflow-language/cwltool/pull/1779