NUMPY_API*/
| 1477 | |
| 1478 | /*NUMPY_API*/ |
| 1479 | NPY_NO_EXPORT int |
| 1480 | PyArray_GetArrayParamsFromObject(PyObject *NPY_UNUSED(op), |
| 1481 | PyArray_Descr *NPY_UNUSED(requested_dtype), |
| 1482 | npy_bool NPY_UNUSED(writeable), |
| 1483 | PyArray_Descr **NPY_UNUSED(out_dtype), |
| 1484 | int *NPY_UNUSED(out_ndim), npy_intp *NPY_UNUSED(out_dims), |
| 1485 | PyArrayObject **NPY_UNUSED(out_arr), PyObject *NPY_UNUSED(context)) |
| 1486 | { |
| 1487 | /* Deprecated in NumPy 1.19, removed in NumPy 1.20. */ |
| 1488 | PyErr_SetString(PyExc_RuntimeError, |
| 1489 | "PyArray_GetArrayParamsFromObject() C-API function is removed " |
| 1490 | "`PyArray_FromAny()` should be used at this time. New C-API " |
| 1491 | "may be exposed in the future (please do request this if it " |
| 1492 | "would help you)."); |
| 1493 | return -1; |
| 1494 | } |
| 1495 | |
| 1496 | |
| 1497 | /*NUMPY_API |
nothing calls this directly
no outgoing calls
no test coverage detected