-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fix the checksum type check #4578
Fix the checksum type check #4578
Conversation
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.
lgtm
Question; this just allows the type-checking step to pass, is this still expected to fail to actually use dict+None (because it does in my test)? I assume i need another one of your PR that fixes that right? |
The `None` case was missed and due to the unrestricted `tuple` elem_type it may return valid for actually invalid entries. So restrict that beeing overly cautious so it may wrongly return invalid. But in that case the conversion function will be called which can do more elaborate verification. Add test checking for None in checksums.
…bility Not sure if that makes sense but at least for EB 4.x we need this.
4e72116
to
099fc5b
Compare
I'm not sure which error but I guess you need #4711 |
This is #4164 rebased on 5.0x
Except for one conflict (
string_type
->str
) it was trivial. So #4164 should still be viable for developThe None case was missed and due to the unrestricted tuple elem_type it may return valid for actually invalid entries.
So restrict that beeing overly cautious so it may wrongly return invalid.
But in that case the conversion function will be called which can do more elaborate verification.
Add test checking for None in checksums.
Also required for #4142 as the check now correctly handles a None value in the dict