Skip to content

Commit

Permalink
Make docstring for __init__ more closely resemble the original
Browse files Browse the repository at this point in the history
The original version is

```
deque([iterable[, maxlen]]) --> deque object
```

The latter part seems redundant so has been omitted.
  • Loading branch information
mpage committed Jan 11, 2024
1 parent 991f686 commit 37c4c05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Modules/_collectionsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@ deque_richcompare(PyObject *v, PyObject *w, int op)
}

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

{
Py_ssize_t maxlenval = -1;
Expand Down
4 changes: 2 additions & 2 deletions Modules/clinic/_collectionsmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37c4c05

Please sign in to comment.