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

Change: Shrink the signature of all Model classes #929

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

bjoernricks
Copy link
Contributor

What

Remove the static model creation methods _get_value and _get_value_from_model_field_cls from the Model class and refactor them to functions.

Why

This methods are just used during model creation and afterwards should not be available on the Model instance.

@bjoernricks bjoernricks requested a review from a team as a code owner November 16, 2023 15:23
@bjoernricks bjoernricks enabled auto-merge (rebase) November 16, 2023 15:23
Copy link

Conventional Commits Report

Type Number
Changed 1

🚀 Conventional commits found.

Remove the static model creation methods  `_get_value` and
`_get_value_from_model_field_cls` from the Model class and refactor them
to functions.

This methods are just used during model creation and afterwards should
not be available on the Model instance.
@bjoernricks bjoernricks merged commit b1d96b0 into main Nov 17, 2023
21 checks passed
@bjoernricks bjoernricks deleted the model-improvements branch November 17, 2023 07:30
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.

2 participants