Skip to content

Commit a89be9c

Browse files
committed
error when unknown type
1 parent e0aad30 commit a89be9c

File tree

1 file changed

+1
-1
lines changed
  • quaddtype/numpy_quaddtype/src

1 file changed

+1
-1
lines changed

quaddtype/numpy_quaddtype/src/dtype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ quadprec_discover_descriptor_from_pyobject(PyArray_DTypeMeta *NPY_UNUSED(cls), P
135135
return (PyArray_Descr *)new_quaddtype_instance(BACKEND_SLEEF);
136136
}
137137

138-
/* Unknown type - let NumPy handle it or raise appropriate error */
138+
/* Unknown type - ERROR */
139139
PyErr_SetString(PyExc_TypeError, "Can only store QuadPrecision, int, or float in a QuadPrecDType array.");
140140
return NULL;
141141
}

0 commit comments

Comments
 (0)