-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix broken approx when mixing numpy booleans and booleans
#13338
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
Conversation
nicoddemus
left a comment
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.
Thanks @BahramF73 for the PR!
Can you please add a test to ensure the code works as intended and prevent future regressions? Thanks!
Co-authored-by: Bruno Oliveira <[email protected]>
for more information, see https://pre-commit.ci
|
Hi @nicoddemus, I added some tests. Please check it! |
for more information, see https://pre-commit.ci
nicoddemus
left a comment
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.
Thanks @BahramF73, we appreciate it!
I will squash/merge in the next few days.
You're welcome! Glad to contribute. |
approx when mixing numpy booleans and booleans
Backport to 8.3.x: 💚 backport PR created✅ Backport PR branch: Backported as #13342 🤖 @patchback |
Fix #13047 --------- Co-authored-by: Bruno Oliveira <[email protected]> (cherry picked from commit 0c45497)
Fix #13047 --------- Co-authored-by: Bruno Oliveira <[email protected]> (cherry picked from commit 0c45497) Co-authored-by: Bahram Farahmand <[email protected]>
Description
Fixed an issue in equality checks where
boolandnumpy.bool_types were not handled consistently.This ensures proper handling of native and numpy boolean types. See #13047.
Fix #13047
Checklist
closes #13047to link this PR to the issue.13047.bugfix.rst.AUTHORSin alphabetical order.