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

Remove version conflict with usage of pydantic v2. fix #15 #16

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

wparad
Copy link
Member

@wparad wparad commented Jun 21, 2024

Imports are optimized to support pydantic v2 but gracefully falls back to v1:

try:
    from pydantic.v1 import validate_arguments, ValidationError
except ImportError:
    from pydantic import validate_arguments, ValidationError

@wparad wparad merged commit 2f63f75 into release/3.0 Jun 21, 2024
1 check passed
@wparad wparad deleted the pydantic-upgrade branch June 21, 2024 08:53
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