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