[Python-checkins] GH-100989: remove annotation from docstring (GH-102991)

rhettinger webhook-mailer at python.org
Fri Mar 24 01:39:19 EDT 2023


https://github.com/python/cpython/commit/d49409196e0c73c38e3f96cf860cbffda40607ec
commit: d49409196e0c73c38e3f96cf860cbffda40607ec
branch: main
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2023-03-24T00:39:12-05:00
summary:

GH-100989: remove annotation from docstring (GH-102991)

files:
M Modules/_collectionsmodule.c

diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index 68131f3b54d2..9d8aef1e6771 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -990,7 +990,7 @@ deque_count(dequeobject *deque, PyObject *v)
 }
 
 PyDoc_STRVAR(count_doc,
-"D.count(value) -> integer -- return number of occurrences of value");
+"D.count(value) -- return number of occurrences of value");
 
 static int
 deque_contains(dequeobject *deque, PyObject *v)
@@ -1098,7 +1098,7 @@ deque_index(dequeobject *deque, PyObject *const *args, Py_ssize_t nargs)
 }
 
 PyDoc_STRVAR(index_doc,
-"D.index(value, [start, [stop]]) -> integer -- return first index of value.\n"
+"D.index(value, [start, [stop]]) -- return first index of value.\n"
 "Raises ValueError if the value is not present.");
 
 /* insert(), remove(), and delitem() are implemented in terms of



More information about the Python-checkins mailing list