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

Use default= kwarg for models (PEP 681 compliance) #93

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

pederhan
Copy link
Member

This PR adds default= kwarg for all generated Pydantic models. That should resolve issues where type checkers are unable to infer that the first argument to Field is the default value.

@pederhan pederhan merged commit 41f8fb0 into unioslo:main Jun 26, 2024
5 checks passed
@pederhan pederhan deleted the use-default-kwarg branch June 26, 2024 10:54
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