Skip to content

BUG: Only replace dtype temporarily if dimensions changed#24128

Merged
charris merged 2 commits intonumpy:maintenance/1.25.xfrom
charris:backport-24103
Jul 6, 2023
Merged

BUG: Only replace dtype temporarily if dimensions changed#24128
charris merged 2 commits intonumpy:maintenance/1.25.xfrom
charris:backport-24103

Conversation

@charris
Copy link
Member

@charris charris commented Jul 5, 2023

Backport of #24103.

for strings this is (currently) arguably not correct... Now of course strings shouldn't be changed to S0 probably, but that is a different matter.

It seems there is something odd (possibly I just kept it as a corner case) for coercion from object arrays.

Tests should cover the paths I think (lets see what CI says) but I couldn't reliably trigger failures for all paths.

Closes gh-24043

seberg added 2 commits July 5, 2023 14:35
For strings this is (currently) arguably not correct... Now of course
strings shouldn't be changed to S0 probably, but that is a different
matter.

It seems there is something odd (possibly I just kept it as a corner
case) for coercion from object arrays.

Tests should cover the paths I think (lets see what CI says) but
I couldn't reliably trigger failures for all paths.

Closes numpygh-24043
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jul 5, 2023
@charris charris added this to the 1.25.1 release milestone Jul 5, 2023
@charris charris changed the title Backport 24103 BUG: Only replace dtype temporarily if dimensions changed Jul 5, 2023
@charris charris merged commit 0d36673 into numpy:maintenance/1.25.x Jul 6, 2023
@charris charris deleted the backport-24103 branch July 6, 2023 00:39
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