Skip to content

Commit 2e098ab

Browse files
gh-117764: Add signature for functools.partial() (GH-117775)
1 parent ffbd974 commit 2e098ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/_functoolsmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,9 @@ partial_call(partialobject *pto, PyObject *args, PyObject *kwargs)
335335
}
336336

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

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

0 commit comments

Comments
 (0)