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

Improve unions #575

Merged
merged 11 commits into from
Mar 22, 2024
Merged

Improve unions #575

merged 11 commits into from
Mar 22, 2024

Conversation

FynnBe
Copy link
Member

@FynnBe FynnBe commented Mar 22, 2024

pydantic's "smart" union mode leads to evaluating more types after a match in order to look for a 'better' match.
in some cases we don't need/want that and can speed up validation and reduce the number of 'failing' web requests

this PR also includes some minor general improvements

@FynnBe FynnBe merged commit b622563 into main Mar 22, 2024
8 checks passed
@FynnBe FynnBe deleted the improve_unions branch March 22, 2024 18:33
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