-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bugfix for approx on mismatched dictionaries #13046
base: main
Are you sure you want to change the base?
Conversation
…over other_side by retrieving values using approx_key
for more information, see https://pre-commit.ci
It is missing the changelog, could you please add it? |
…om/dvdliu/pytest into dvdliu/approx_mismatch_dict_bugfix
for more information, see https://pre-commit.ci
@nicoddemus @RonnyPfannschmidt , I also had this problem recently and this seems to be a nice fix. Could you review and approve if you are fine with it please? |
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 believe its necessary to report tge additional keys
for (approx_key, approx_value), other_value in zip( | ||
approx_side_as_map.items(), other_side.values() | ||
): | ||
for approx_key, approx_value in approx_side_as_map.items(): |
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 just noted that the fix ignores additional keys in the other side
Main Changes
Closes #12444
Tests
Regression test added for the issue mentioned in the above issue