diff --git a/Objects/typeobject.c b/Objects/typeobject.c index a5967210cbf..474a97c322c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -878,7 +878,7 @@ bozo_func(PyObject *self, PyObject *args) return NULL; } -static PyMethodDef bozo_ml = {"__getstate__", bozo_func}; +static PyMethodDef bozo_ml = {"__getstate__", bozo_func, METH_VARARGS}; static PyObject *bozo_obj = NULL;