gh-84805: Autogenerate signature for METH_NOARGS and METH_O extension functions (GH-107794)

This commit is contained in:
Serhiy Storchaka 2023-08-11 18:08:38 +03:00 committed by GitHub
parent 23a6db98f2
commit 3901c991e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 227 additions and 17 deletions

View file

@ -192,7 +192,9 @@ static PyMethodDef meth_methods[] = {
static PyObject *
meth_get__text_signature__(PyCFunctionObject *m, void *closure)
{
return _PyType_GetTextSignatureFromInternalDoc(m->m_ml->ml_name, m->m_ml->ml_doc);
return _PyType_GetTextSignatureFromInternalDoc(m->m_ml->ml_name,
m->m_ml->ml_doc,
m->m_ml->ml_flags);
}
static PyObject *