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, python: allow typing any to be wrapped in optional to match Pydantic v2 #4203

Merged
merged 6 commits into from
Aug 5, 2024

Conversation

armandobelardo
Copy link
Contributor

It seems as though now when parsing things leveraging Pydantic v2, a missing key is not allowed to be parsed to any and instead Pydantic throws that they key is missing. To keep parity with the previous API we were allowing with v1, we make the anys wrapped in optionals such that this parsing succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants