-
Notifications
You must be signed in to change notification settings - Fork 2k
streamable: Improve dataclass_from_dict
validation, add more tests
#10652
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
streamable: Improve dataclass_from_dict
validation, add more tests
#10652
Conversation
This pull request fixes 1 alert when merging cb86485b6012cbcbe05bf3e97f5acc05d3d704a8 into 0e29dbc - view on LGTM.com fixed alerts:
|
cb86485
to
edb1657
Compare
This pull request fixes 1 alert when merging edb1657152e0610e39585238b7e42bb6b74b0843 into 0e29dbc - view on LGTM.com fixed alerts:
|
This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed by the relevant parties. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
edb1657
to
e4d392b
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
e4d392b
to
50dd51d
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
50dd51d
to
d043e73
Compare
d043e73
to
a2ded6d
Compare
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.
I know we chatted about this, but on the isinstance()
vs. type() ==
maybe either make them consistent or provide an explanation.
See 1b8c9fe. |
Improves the validation in all
convert_<whatever>
methods and indataclass_from_dict
ands adds test for all failure cases.Based on:
dataclass_from_dict
#10561dataclass_from_dict
#11732