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

Refactor how we access ORM model configuration #366

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

mesozoic
Copy link
Collaborator

Right now ORM configuration isn't neatly encapsulated and it's not always type-annotated. This branch refactors things a bit into a model_class.meta classvar, which has typed properties and still applies all the features we need (like dynamically determined configuration properties). This also reduces the "autocomplete noise" inside the ORM model itself, especially if we add more configuration options in the future.

@mesozoic mesozoic merged commit 2631bee into gtalarico:main Apr 22, 2024
7 checks passed
@mesozoic mesozoic deleted the orm_meta branch April 22, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant