8000 Make docstring for __init__ more closely resemble the original · python/cpython@37c4c05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37c4c05

Browse files
committed
Make docstring for __init__ more closely resemble the original
The original version is ``` deque([iterable[, maxlen]]) --> deque object ``` The latter part seems redundant so has been omitted.
1 parent 991f686 commit 37c4c05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Modules/_collectionsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ deque_richcompare(PyObject *v, PyObject *w, int op)
16291629
}
16301630

16311631
/*[clinic input]
1632-
@text_signature "($self, iterable=None, maxlen=None)"
1632+
@text_signature "([iterable[, maxlen]])"
16331633
_collections.deque.__init__
16341634
16351635
deque: dequeobject
@@ -1642,7 +1642,7 @@ A list-like sequence optimized for data accesses near its endpoints.
16421642
static int
16431643
_collections_deque___init___impl(dequeobject *deque, PyObject *iterable,
16441644
PyObject *maxlen)
1645-
/*[clinic end generated code: output=9fbb306da99f6694 input=2966a2a0176e4506]*/
1645+
/*[clinic end generated code: output=9fbb306da99f6694 input=aa6219250dc91d12]*/
16461646

16471647
{
16481648
Py_ssize_t maxlenval = -1;

Modules/clinic/_collectionsmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0