Skip to content

BUG: Fix array_equal for numeric and non-numeric scalar types#27278

Merged
charris merged 1 commit intonumpy:maintenance/2.1.xfrom
charris:backport-27275
Aug 26, 2024
Merged

BUG: Fix array_equal for numeric and non-numeric scalar types#27278
charris merged 1 commit intonumpy:maintenance/2.1.xfrom
charris:backport-27275

Conversation

@charris
Copy link
Member

@charris charris commented Aug 26, 2024

Backport of #27275

Mitigates #27271. The underlying issue (an array comparison returning a python bool instead of a numpy bool) is not addressed.

The order of statements is slightly reordered, so that the if a1 is a2: check can be done before the calculation of cannot_have_nan

Closes gh-27271

Backport of numpy#27275

Mitigates numpy#27271. The underlying issue (an array comparison returning a
python bool instead of a numpy bool) is not addressed.

The order of statements is slightly reordered, so that the if
`a1 is a2:` check can be done before the calculation of
`cannot_have_nan`

Closes numpygh-27271
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Aug 26, 2024
@charris charris added this to the 2.1.1 release milestone Aug 26, 2024
@charris charris merged commit 8164b7c into numpy:maintenance/2.1.x Aug 26, 2024
@charris charris deleted the backport-27275 branch August 26, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants