Replace "size_t nargs" with "Py_ssize_t nargs" in PyCMethod.
PyObject *const *, Py_ssize_t,
PyObject *);
typedef PyObject *(*PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *,
- size_t, PyObject *);
+ Py_ssize_t, PyObject *);
// For backwards compatibility. `METH_FASTCALL` was added to the stable API in
// 3.10 alongside `_PyCFunctionFastWithKeywords` and `_PyCFunctionFast`.
--- /dev/null
+Fix :c:type:`PyCMethod` API: replace ``size_t nargs`` with ``Py_ssize_t nargs``
+in :c:type:`PyCMethod`. Patch by Victor Stinner.