Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sort classes from python generators to linkml-runtime #2004

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sneakers-the-rat
Copy link
Collaborator

@sneakers-the-rat sneakers-the-rat commented Mar 21, 2024

Can only be merged after:

Starting to tidy up pydanticgen, noticed first off a TODO saying that the sort classes method should move to schemaview. definitely agreed.

removed it and the identical one from the python generator and updated the places where it's called.

Other changes: I also noticed i wasnt' getting type hints for self.schema from the parent Generator class, so i went looking for why, and in the process of adding the hint noticed that the init from schemaloader method had some redundancies and cleaned them up.

restore original schemaloader code in Generator... too much type negotiation in there to simplify lol
@vladistan
Copy link
Contributor

+1 for this. I see this problem a lot with gendoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants