diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c index 313f83e7c64..fc168e3c75f 100644 --- a/Modules/_curses_panel.c +++ b/Modules/_curses_panel.c @@ -333,7 +333,8 @@ static PyMethodDef PyCursesPanel_Methods[] = { {"hidden", (PyCFunction)PyCursesPanel_panel_hidden}, {"hide", (PyCFunction)PyCursesPanel_hide_panel}, {"move", (PyCFunction)PyCursesPanel_move_panel}, - {"replace", (PyCFunction)PyCursesPanel_replace_panel}, + {"replace", (PyCFunction)PyCursesPanel_replace_panel, + METH_VARARGS}, {"set_userptr", (PyCFunction)PyCursesPanel_set_panel_userptr, METH_VARARGS}, {"show", (PyCFunction)PyCursesPanel_show_panel},