* Like PyArray_IntpConverter, but leaves `seq` untouched if `None` is passed * rather than treating `None` as `()`. */
| 215 | * rather than treating `None` as `()`. |
| 216 | */ |
| 217 | NPY_NO_EXPORT int |
| 218 | PyArray_OptionalIntpConverter(PyObject *obj, PyArray_Dims *seq) |
| 219 | { |
| 220 | if (obj == Py_None) { |
| 221 | return NPY_SUCCEED; |
| 222 | } |
| 223 | |
| 224 | return PyArray_IntpConverter(obj, seq); |
| 225 | } |
| 226 | |
| 227 | NPY_NO_EXPORT int |
| 228 | PyArray_CopyConverter(PyObject *obj, _PyArray_CopyMode *copymode) { |
no test coverage detected