]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-100989: remove annotation from docstring (GH-102991)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Mar 2023 06:04:06 +0000 (23:04 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2023 06:04:06 +0000 (23:04 -0700)
(cherry picked from commit d49409196e0c73c38e3f96cf860cbffda40607ec)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Modules/_collectionsmodule.c

index 741cfbe9dc614244b2094db1fdca97bc1dddd08a..5f5c0886e2f65ea39e5ce557d9faaed59d5b6bb0 100644 (file)
@@ -997,7 +997,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)
@@ -1106,7 +1106,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