@@ -48,11 +48,10 @@ string_equal_strided_loop(PyArrayMethod_Context *context, char *const data[],
48
48
}
49
49
50
50
static NPY_CASTING
51
- string_equal_resolve_descriptors (PyObject * NPY_UNUSED (self ),
52
- PyArray_DTypeMeta * NPY_UNUSED (dtypes []),
53
- PyArray_Descr * given_descrs [],
54
- PyArray_Descr * loop_descrs [],
55
- npy_intp * NPY_UNUSED (view_offset ))
51
+ string_equal_resolve_descriptors (
52
+ struct PyArrayMethodObject_tag * NPY_UNUSED (method ),
53
+ PyArray_DTypeMeta * NPY_UNUSED (dtypes []), PyArray_Descr * given_descrs [],
54
+ PyArray_Descr * loop_descrs [], npy_intp * NPY_UNUSED (view_offset ))
56
55
{
57
56
Py_INCREF (given_descrs [0 ]);
58
57
loop_descrs [0 ] = given_descrs [0 ];
@@ -86,11 +85,10 @@ string_isnan_strided_loop(PyArrayMethod_Context *NPY_UNUSED(context),
86
85
}
87
86
88
87
static NPY_CASTING
89
- string_isnan_resolve_descriptors (PyObject * NPY_UNUSED (self ),
90
- PyArray_DTypeMeta * NPY_UNUSED (dtypes []),
91
- PyArray_Descr * given_descrs [],
92
- PyArray_Descr * loop_descrs [],
93
- npy_intp * NPY_UNUSED (view_offset ))
88
+ string_isnan_resolve_descriptors (
89
+ struct PyArrayMethodObject_tag * NPY_UNUSED (method ),
90
+ PyArray_DTypeMeta * NPY_UNUSED (dtypes []), PyArray_Descr * given_descrs [],
91
+ PyArray_Descr * loop_descrs [], npy_intp * NPY_UNUSED (view_offset ))
94
92
{
95
93
Py_INCREF (given_descrs [0 ]);
96
94
loop_descrs [0 ] = given_descrs [0 ];
@@ -176,9 +174,6 @@ init_ufunc(PyObject *numpy, const char *ufunc_name, PyArray_DTypeMeta **dtypes,
176
174
return -1 ;
177
175
}
178
176
179
- /*
180
- * Initialize spec for equality
181
- */
182
177
PyType_Slot slots [] = {{NPY_METH_resolve_descriptors , resolve_func },
183
178
{NPY_METH_strided_loop , loop_func },
184
179
{0 , NULL }};
0 commit comments