Skip to content

fix: support pydantic 1 and 2 in reactive vars#601

Merged
maartenbreddels merged 1 commit intomasterfrom
fix_support_pydantic1_and_2
Apr 12, 2024
Merged

fix: support pydantic 1 and 2 in reactive vars#601
maartenbreddels merged 1 commit intomasterfrom
fix_support_pydantic1_and_2

Conversation

@maartenbreddels
Copy link
Copy Markdown
Contributor

We supported pydantic 1 and 2, using .dict() which was deprecated in pydantic 2.
It is also semantically more correct to use .copy, which in pydantic 2 is model_copy.
We now use copy/model_copy depending on the pydantic version.

We supported pydantic 1 and 2, using .dict() which was deprecated in
pydantic 2.
It is also semantically more correct to use .copy, which in pydantic 2
is model_copy.
We now use copy/model_copy depending on the pydantic version.
@maartenbreddels maartenbreddels merged commit b41781f into master Apr 12, 2024
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