Skip to content

BUG: fix visibility annotations for functions in StringDType implementation - #32371

Merged
charris merged 1 commit into
numpy:mainfrom
ngoldbaum:fix-stringdtype-visibility
Aug 20, 2026
Merged

charris merged 1 commit into
numpy:mainfrom
ngoldbaum:fix-stringdtype-visibility

Conversation

@ngoldbaum

Copy link
Copy Markdown
Member

PR summary

Adds missing static or NPY_NO_EXPORT visibility annotations for several functions in the StringDType implementation.

Noticed while working on the ByteStringDType impelementation.

AI Disclosure

No AI use.

@ngoldbaum ngoldbaum added 00 - Bug 09 - Backport-Candidate PRs tagged should be backported labels Aug 20, 2026
stringdtype_finalize_descr(PyArray_Descr *dtype);

NPY_NO_EXPORT int
_eq_comparison(int scoerce, int ocoerce, PyObject *sna, PyObject *ona);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only used in dtype.c now so we can remove it from the header

@jorenham

jorenham commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Did someone say annotations!?

Oh... It's those kinds of annotations :P

@charris
charris merged commit 209b5c3 into numpy:main Aug 20, 2026
92 checks passed
@charris

charris commented Aug 20, 2026

Copy link
Copy Markdown
Member

Thanks Nathan.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 21, 2026
charris added a commit that referenced this pull request Aug 21, 2026
BUG: fix visibility annotations for functions in StringDType implementation (#32371)
ngoldbaum added a commit to ngoldbaum/numpy that referenced this pull request Sep 8, 2026
ngoldbaum added a commit to ngoldbaum/numpy that referenced this pull request Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants