File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ typedef struct {
147
147
static void partial_setvectorcall (partialobject * pto );
148
148
static struct PyModuleDef _functools_module ;
149
149
static PyObject *
150
- partial_call (partialobject * pto , PyObject * args , PyObject * kwargs );
150
+ partial_call (PyObject * pto , PyObject * args , PyObject * kwargs );
151
151
152
152
static inline _functools_state *
153
153
get_functools_state_by_type (PyTypeObject * type )
@@ -477,8 +477,9 @@ partial_setvectorcall(partialobject *pto)
477
477
478
478
// Not converted to argument clinic, because of `*args, **kwargs` arguments.
479
479
static PyObject *
480
- partial_call (partialobject * pto , PyObject * args , PyObject * kwargs )
480
+ partial_call (PyObject * self , PyObject * args , PyObject * kwargs )
481
481
{
482
+ partialobject * pto = (partialobject * )self ;
482
483
assert (PyCallable_Check (pto -> fn ));
483
484
assert (PyTuple_Check (pto -> args ));
484
485
assert (PyDict_Check (pto -> kw ));
You can’t perform that action at this time.
0 commit comments