Skip to content

Commit e9191c0

Browse files
committed
fix: update types for numpy 2.x compatibility
1 parent 538cef8 commit e9191c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn_pmml_model/tree/_tree.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ from ._utils cimport setup_cat_cache
4343
from ._utils cimport goes_left
4444

4545
cdef extern from "numpy/arrayobject.h":
46-
object PyArray_NewFromDescr(object subtype, np.dtype descr,
46+
object PyArray_NewFromDescr(type subtype, np.dtype descr,
4747
int nd, np.npy_intp* dims,
4848
np.npy_intp* strides,
4949
void* data, int flags, object obj)

0 commit comments

Comments
 (0)