@@ -251,11 +251,10 @@ public:
251
251
*
252
252
* @param self - The JSArrayProxy
253
253
* @param args - arguments to the sort method (not used)
254
- * @param nargs - number of arguments to the sort method
255
- * @param kwnames - keyword arguments to the sort method (reverse=True|False, key=keyfunction)
254
+ * @param kwargs - keyword arguments to the sort method (reverse=True|False, key=keyfunction)
256
255
* @return PyObject* NULL on exception, None otherwise
257
256
*/
258
- static PyObject *JSArrayProxy_sort (JSArrayProxy *self, PyObject *const * args, Py_ssize_t nargs, PyObject *kwnames );
257
+ static PyObject *JSArrayProxy_sort (JSArrayProxy *self, PyObject *args, PyObject *kwargs );
259
258
260
259
/* *
261
260
* @brief tp_traverse
@@ -404,7 +403,7 @@ static PyMethodDef JSArrayProxy_methods[] = {
404
403
{" index" , (PyCFunction)JSArrayProxyMethodDefinitions::JSArrayProxy_index, METH_FASTCALL, list_index__doc__},
405
404
{" count" , (PyCFunction)JSArrayProxyMethodDefinitions::JSArrayProxy_count, METH_O, list_count__doc__},
406
405
{" reverse" , (PyCFunction)JSArrayProxyMethodDefinitions::JSArrayProxy_reverse, METH_NOARGS, list_reverse__doc__},
407
- {" sort" , (PyCFunction)JSArrayProxyMethodDefinitions::JSArrayProxy_sort, METH_FASTCALL |METH_KEYWORDS, list_sort__doc__},
406
+ {" sort" , (PyCFunction)JSArrayProxyMethodDefinitions::JSArrayProxy_sort, METH_VARARGS |METH_KEYWORDS, list_sort__doc__},
408
407
{NULL , NULL } /* sentinel */
409
408
};
410
409
0 commit comments