Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MAINT: PR 31332 revisions
* Simplified the error handling in `_convert_from_tuple()` function
based on reviewer feedback.

[skip azp] [skip cirrus] [skip actions]
  • Loading branch information
tylerjereddy committed Apr 29, 2026
commit 377836b4478d5dd4e4a25a0766b1f19d85eb0ed3
6 changes: 0 additions & 6 deletions numpy/_core/src/multiarray/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,6 @@ _convert_from_tuple(PyObject *obj, int align)
"dimension smaller then zero.");
goto fail;
}
if (shape.ptr[i] > NPY_MAX_INTP) {
PyErr_SetString(PyExc_ValueError,
"invalid shape in fixed-type tuple: "
"dimension does not fit into a C int.");
goto fail;
}
}
npy_intp items = PyArray_OverflowMultiplyList(shape.ptr, shape.len);
int overflowed;
Expand Down