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

fix: pydantic version #1665

Merged
merged 1 commit into from
Oct 17, 2023
Merged

fix: pydantic version #1665

merged 1 commit into from
Oct 17, 2023

Conversation

IgnatovFedor
Copy link
Collaborator

Fix ImportError: cannot import name 'Undefined' from 'pydantic.fields' on pydantic>=2

@IgnatovFedor IgnatovFedor merged commit 9151671 into dev Oct 17, 2023
@IgnatovFedor IgnatovFedor deleted the fix/pydantic branch October 17, 2023 08:53
@IgnatovFedor IgnatovFedor mentioned this pull request Oct 17, 2023
IgnatovFedor added a commit that referenced this pull request Oct 17, 2023
@ruslan-korneev
Copy link

@IgnatovFedor maybe instead of limiting the version we could use pydantic.v1 package inside the pydantic>=2?

With your example it'll look like that, and it works fine

from pydantic.v1.fields import Undefined

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