Skip to content

Use TypeAdapter for extra precaution #13

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

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Use TypeAdapter for extra precaution #13

merged 1 commit into from
Oct 31, 2024

Conversation

kamath
Copy link
Member

@kamath kamath commented Oct 31, 2024

Some of our constructors use kwargs syntax, which will lead to validation errors with nested fields. This isn't throwing any errors right now, but we can use TypeAdapter as an extra sanity check and precaution measure for best practices

Tests continue to pass here by running python -m unittest tests/lib.py from directory root.

@kamath kamath requested a review from maxbeatty October 31, 2024 19:08
@kamath kamath merged commit 089bcbb into main Oct 31, 2024
@kamath kamath deleted the anirudh/typeadapter branch October 31, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants