biolink / biolinkml

DEPRECATED: replaced by linkml
https://github.com/linkml/linkml
Creative Commons Zero v1.0 Universal
23 stars 12 forks source link

Ensure parent classes are declared before child classes in pythongen #134

Closed cmungall closed 4 years ago

cmungall commented 4 years ago

currrently it is up to the schema definer to ensure correct ordering, with parent classes declared first.

This gets messed up by imports -

if a imports b, when we generate the python the declarations for a will have forward declarations to b elements which are not yet defined. generate b artefacts first