We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 614ca19 + f055fb9 commit daa8699Copy full SHA for daa8699
numpy/_core/src/multiarray/abstractdtypes.c
@@ -476,7 +476,6 @@ npy_find_descr_for_scalar(
476
/* If the DType doesn't know the scalar type, guess at default. */
477
!NPY_DT_CALL_is_known_scalar_type(common, Py_TYPE(scalar))) {
478
if (common->singleton != NULL) {
479
- Py_INCREF(common->singleton);
480
res = common->singleton;
481
Py_INCREF(res);
482
}
0 commit comments