Commit 56ed5b3
Fix NumPy 2.0 compatibility in numpy_parser
The `ndarray.newbyteorder()` method was removed in NumPy 2.0.
Use `arr.view(arr.dtype.newbyteorder())` instead, which is compatible
with both NumPy 1.x and 2.x.
This fixes the failing numpy protocol handler integration tests
that started running after numpy was added to dev dependencies.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 1cacdc7 commit 56ed5b3
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
0 commit comments