gh-117764: Fix and add signatures for many builtins (GH-117769)

This commit is contained in:
Serhiy Storchaka 2024-04-12 13:56:41 +03:00 committed by GitHub
parent 94e9c35cd0
commit 3a8c1ca7e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 45 additions and 30 deletions

View file

@ -751,7 +751,7 @@ PyDoc_STRVAR(index_doc,
static PyMethodDef range_methods[] = {
{"__reversed__", range_reverse, METH_NOARGS, reverse_doc},
{"__reduce__", (PyCFunction)range_reduce, METH_VARARGS},
{"__reduce__", (PyCFunction)range_reduce, METH_NOARGS},
{"count", (PyCFunction)range_count, METH_O, count_doc},
{"index", (PyCFunction)range_index, METH_O, index_doc},
{NULL, NULL} /* sentinel */