Skip to content

BUG: add a special case for StringDType in np.isdtype (#32030) - #32119

Merged
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-32030
Jul 27, 2026
Merged

BUG: add a special case for StringDType in np.isdtype (#32030)#32119
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-32030

Conversation

@charris

@charris charris commented Jul 27, 2026

Copy link
Copy Markdown
Member

Backport of #32030.

PR summary

Fixes #27545.

I don't see a cleaner way to fix this without just adding a special case in the error path. This function is only for built-in NumPy DTypes so it would be a bigger change to just make it return True if it's handed a dtype or dtypemeta instance, which is probably a more principled fix.

AI Disclosure

No AI use on this one.

@charris charris added this to the 2.5.2 release milestone Jul 27, 2026
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jul 27, 2026
@charris
charris merged commit 3fee650 into numpy:maintenance/2.5.x Jul 27, 2026
86 checks passed
@charris
charris deleted the backport-32030 branch July 27, 2026 17:03
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