Commit a35dc6c
committed
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.1 parent 4331c5b commit a35dc6c
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