diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-04-12 12:45:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 12:45:23 (GMT) |
commit | 2d3d9b4461d0e2cb475014868af3c2f241cb6495 (patch) | |
tree | 99ed8e6972a24598a116e62dd0b4639c9da4f18b /Objects/sliceobject.c | |
parent | 39a6b29756f98223d02d7bda5f5ed962c9e55328 (diff) | |
download | cpython-2d3d9b4461d0e2cb475014868af3c2f241cb6495.zip cpython-2d3d9b4461d0e2cb475014868af3c2f241cb6495.tar.gz cpython-2d3d9b4461d0e2cb475014868af3c2f241cb6495.tar.bz2 |
gh-117764: Add docstrings and signatures for the types of None, Ellipsis and NotImplemented (GH-117813)
Diffstat (limited to 'Objects/sliceobject.c')
-rw-r--r-- | Objects/sliceobject.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index 7333aea..245bea9 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -57,6 +57,11 @@ static PyMethodDef ellipsis_methods[] = { {NULL, NULL} }; +PyDoc_STRVAR(ellipsis_doc, +"ellipsis()\n" +"--\n\n" +"The type of the Ellipsis singleton."); + PyTypeObject PyEllipsis_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "ellipsis", /* tp_name */ @@ -78,7 +83,7 @@ PyTypeObject PyEllipsis_Type = { 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ - 0, /* tp_doc */ + ellipsis_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ |