Skip to content

Commit

Permalink
pythongh-117764: Add signature for functools.partial() (pythonGH-117775)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Apr 12, 2024
1 parent ffbd974 commit 2e098ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,9 @@ partial_call(partialobject *pto, PyObject *args, PyObject *kwargs)
}

PyDoc_STRVAR(partial_doc,
"partial(func, *args, **keywords) - new function with partial application\n\
of the given arguments and keywords.\n");
"partial(func, /, *args, **keywords)\n--\n\n\
Create a new function with partial application of the given arguments\n\
and keywords.");

#define OFF(x) offsetof(partialobject, x)
static PyMemberDef partial_memberlist[] = {
Expand Down

0 comments on commit 2e098ab

Please sign in to comment.