Skip to content

ENH: add ByteStringDType to NumPy - #32772

Draft
ngoldbaum wants to merge 22 commits into
numpy:mainfrom
ngoldbaum:bytestringdtype
Draft

ngoldbaum wants to merge 22 commits into
numpy:mainfrom
ngoldbaum:bytestringdtype

Conversation

@ngoldbaum

@ngoldbaum ngoldbaum commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Comment thread doc/release/upcoming_changes/+bytestringdtype.deprecation.rst Outdated
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread numpy/_core/src/multiarray/multiarraymodule.c
@github-actions

Copy link
Copy Markdown

Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code:

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/series/test_series.py:2141: error: Expression is of type "Literal['b', 'i', 'u', 'f', 'c', 'm', 'M', 'O', 'S', 'U', 'V', 'T', 'R']", not "Literal['b', 'i', 'u', 'f', 'c', 'm', 'M', 'O', 'S', 'U', 'V', 'T']"  [assert-type]
+ tests/series/test_series.py:2145: error: Expression is of type "Literal['b', 'i', 'u', 'f', 'c', 'm', 'M', 'O', 'S', 'U', 'V', 'T', 'R']", not "Literal['b', 'i', 'u', 'f', 'c', 'm', 'M', 'O', 'S', 'U', 'V', 'T']"  [assert-type]
+ tests/series/test_series.py:2149: error: Expression is of type "Literal['b', 'i', 'u', 'f', 'c', 'm', 'M', 'O', 'S', 'U', 'V', 'T', 'R']", not "Literal['b', 'i', 'u', 'f', 'c', 'm', 'M', 'O', 'S', 'U', 'V', 'T']"  [assert-type]

This branch has not been deployed

No deployments
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.

ENH: StringDType equivalent for bytes

1 participant