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 settable __pydantic_fields__ #32

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

piercefreeman
Copy link
Owner

@piercefreeman piercefreeman commented Dec 3, 2024

With the latest release, model_fields is no longer an assignable value in pydantic - so we have to modify the fields explicitly with __pydantic_fields__. This field replaces the internally tracked __fields__ from pydantic v1.

@piercefreeman piercefreeman merged commit 5d73592 into main Dec 3, 2024
5 checks passed
@piercefreeman piercefreeman deleted the bug/fix-pydantic-setter-crash branch December 3, 2024 23:14
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