Skip to content

Use TypeAdapter for extra precaution#13

Merged
kamath merged 1 commit intomainfrom
anirudh/typeadapter
Oct 31, 2024
Merged

Use TypeAdapter for extra precaution#13
kamath merged 1 commit intomainfrom
anirudh/typeadapter

Conversation

@kamath
Copy link
Contributor

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants