gh-117764: Add signature for functools.partial() (GH-117775)

This commit is contained in:
Serhiy Storchaka 2024-04-12 13:00:38 +03:00 committed by GitHub
parent ffbd97428d
commit 2e098abf95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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[] = {