summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/multiarray/arrayfunction_override.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/arrayfunction_override.c b/numpy/core/src/multiarray/arrayfunction_override.c
index 9254c6f6d..6f4c63527 100644
--- a/numpy/core/src/multiarray/arrayfunction_override.c
+++ b/numpy/core/src/multiarray/arrayfunction_override.c
@@ -384,8 +384,7 @@ array_implement_c_array_function_creation(
return NULL;
}
else if (!get_array_function(like_arg)) {
- return PyErr_Format(
- PyExc_TypeError,
+ return PyErr_Format(PyExc_TypeError,
"The `like` object must implement the `__array_function__` protocol");
}
PyObject *relevant_args = PyTuple_Pack(1, like_arg);