Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: add model validation for types #708
base: main
Are you sure you want to change the base?
feat: add model validation for types #708
Changes from 7 commits
4cc6762
8dcd7dd
cb15f44
aa039d2
8ae0e1c
310363e
8f2460a
eaf2f8b
0e04538
8820926
84b29a7
3578749
cfea264
5606e0d
2bdc65a
eeaa426
ac0b4c6
e94d979
faf75fd
68907d4
aa9d110
525c15d
a3a4efe
e08ccdf
c745f69
786ad8d
71b0a04
850998d
55172f2
28963b4
95df2fc
d894086
591513e
a6807ac
2f86ded
86e0700
272742c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Enhance dict validation to check key and value types.
The current implementation only verifies that the value is a dict without validating its contents against the expected key and value types.
📝 Committable suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add missing
__repr__
method definition to prevent syntax errors.The docstring on line 407 is not associated with any function, suggesting that the
__repr__
method definition is missing. This will cause a syntax error.Apply this diff to define the
__repr__
method correctly:+ def __repr__(self: Self) -> str: """Returns a string representation of a BaseModel object."""
📝 Committable suggestion