Fix METH_NOARGS function signatures (#1169)

This commit is contained in:
Hood Chatham 2021-01-29 12:24:14 -08:00 committed by GitHub
parent 7d68edc447
commit c12e245191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ JsProxy_RichCompare(PyObject* a, PyObject* b, int op)
}
static PyObject*
JsProxy_GetIter(PyObject* o)
JsProxy_GetIter(PyObject* o, PyObject* _args)
{
JsProxy* self = (JsProxy*)o;
@ -261,7 +261,7 @@ JsProxy_ass_subscript(PyObject* o, PyObject* pyidx, PyObject* pyvalue)
#define GET_JSREF(x) (((JsProxy*)x)->js)
static PyObject*
JsProxy_Dir(PyObject* self)
JsProxy_Dir(PyObject* self, PyObject* _args)
{
bool success = false;
PyObject* object__dir__ = NULL;
@ -317,7 +317,7 @@ JsProxy_Bool(PyObject* o)
}
static PyObject*
JsProxy_Await(JsProxy* self)
JsProxy_Await(JsProxy* self, PyObject* _args)
{
// Guards
if (self->awaited) {