mirror of https://github.com/pyodide/pyodide.git
Fix METH_NOARGS function signatures (#1169)
This commit is contained in:
parent
7d68edc447
commit
c12e245191
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue