Skip to content

♻️ Remove _DTypeLike aliases in favor of _numtype.ToDType#856

Open
Aniketsy wants to merge 3 commits intonumpy:mainfrom
Aniketsy:fix-566
Open

♻️ Remove _DTypeLike aliases in favor of _numtype.ToDType#856
Aniketsy wants to merge 3 commits intonumpy:mainfrom
Aniketsy:fix-566

Conversation

@Aniketsy
Copy link
Copy Markdown

@Aniketsy Aniketsy commented Apr 15, 2026

fixes #566

@Aniketsy Aniketsy marked this pull request as draft April 15, 2026 18:24
@Aniketsy Aniketsy marked this pull request as ready for review April 15, 2026 22:31
Comment thread src/numpy-stubs/_core/einsumfunc.pyi Outdated
Comment thread src/numpy-stubs/_core/einsumfunc.pyi Outdated
Comment thread src/numpy-stubs/_core/umath.pyi Outdated
Comment thread src/numpy-stubs/random/bit_generator.pyi Outdated
Comment thread src/numpy-stubs/lib/recfunctions.pyi Outdated
@jorenham jorenham changed the title Remove _DTypeLike aliases in favor of _numtype.ToDType ♻️ Remove _DTypeLike aliases in favor of _numtype.ToDType Apr 18, 2026
@jorenham
Copy link
Copy Markdown
Member

Oh woops; I forgot that _numtype.ToDType isn't generic; I meant _numtype._ToDType (yea the API isn't ideal; I'll probably change it at some point).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove the numpy._typing._DTypeLike{} aliases in favor of _numtype.ToDType{}

2 participants