Uh oh!
There was an error while loading. Please reload this page.
♻️ Replace numpy._typing._ArrayLike with _numtype equivalents - #861
♻️ Replace numpy._typing._ArrayLike with _numtype equivalents#861Aniketsy wants to merge 6 commits into
numpy._typing._ArrayLike with _numtype equivalents#861Conversation
jorenham
commented
Apr 28, 2026
needs a rebase |
Aniketsy
commented
Apr 28, 2026
yes, marking in draft till then . |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| AR_M > AR_f # type: ignore[operator] # pyright: ignore[reportOperatorIssue] | ||
| AR_M > AR_c # type: ignore[operator] # pyright: ignore[reportOperatorIssue] | ||
| AR_M > AR_m # type: ignore[operator] | ||
| AR_M > AR_m |
There was a problem hiding this comment.
This should be an error, so something broke.
There was a problem hiding this comment.
i'll look into this then ..
There was a problem hiding this comment.
Let me know if you can't figure it out: dtype promotion in numtype is very complicated stuff (I barely understand it myself tbh).
There was a problem hiding this comment.
i restore it , and got these errors on running
src/numpy-stubs/@test/static/reject/comparisons.pyi:28: error: Unused "type: ignore" comment [unused-ignore]
src/numpy-stubs/@test/static/reject/comparisons.pyi:37: error: Unused "type: ignore" comment [unused-ignore]
are we expecting these...
Let me know if you can't figure it out: dtype promotion in numtype is very complicated stuff (I barely understand it myself tbh).
or maybe i'll need help with this .
| ) | ||
| np.rec.fromrecords(AR_i8) # type: ignore[arg-type] | ||
| np.rec.fromrecords(AR_i8) |
There was a problem hiding this comment.
This one should also report an error
Towards #568
Replaces the following:--
left with
generic _ArrayLike[_ScalarT]for the follow up