Skip to content

Commit c1695df

Browse files
committed
Fix sphinx duplicate index and global clinic sync
1 parent d9b7b39 commit c1695df

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ expression support in the :mod:`re` module).
18981898

18991899

19001900
.. method:: str.count(sub, /)
1901-
.. method:: str.count(sub, start=0, end=sys.maxsize, /)
1901+
str.count(sub, start=0, end=sys.maxsize, /)
19021902

19031903
Return the number of non-overlapping occurrences of substring *sub* in the
19041904
range [*start*, *end*]. Optional arguments *start* and *end* are
@@ -1998,7 +1998,7 @@ expression support in the :mod:`re` module).
19981998

19991999

20002000
.. method:: str.find(sub, /)
2001-
.. method:: str.find(sub, start=0, end=sys.maxsize, /)
2001+
str.find(sub, start=0, end=sys.maxsize, /)
20022002

20032003
Return the lowest index in the string where substring *sub* is found within
20042004
the slice ``s[start:end]``. Optional arguments *start* and *end* are
@@ -2508,7 +2508,7 @@ expression support in the :mod:`re` module).
25082508

25092509

25102510
.. method:: str.rfind(sub, /)
2511-
.. method:: str.rfind(sub, start=0, end=sys.maxsize, /)
2511+
str.rfind(sub, start=0, end=sys.maxsize, /)
25122512

25132513
Return the highest index in the string where substring *sub* is found, such
25142514
that *sub* is contained within ``s[start:end]``. Optional arguments *start*
@@ -2526,7 +2526,7 @@ expression support in the :mod:`re` module).
25262526

25272527

25282528
.. method:: str.rindex(sub, /)
2529-
.. method:: str.rindex(sub, start=0, end=sys.maxsize, /)
2529+
str.rindex(sub, start=0, end=sys.maxsize, /)
25302530

25312531
Like :meth:`rfind` but raises :exc:`ValueError` when the substring *sub* is not
25322532
found.
@@ -3608,9 +3608,9 @@ The following methods on bytes and bytearray objects can be used with
36083608
arbitrary binary data.
36093609

36103610
.. method:: bytes.count(sub, /)
3611-
.. method:: bytes.count(sub, start=0, end=sys.maxsize, /)
3612-
.. method:: bytearray.count(sub, /)
3613-
.. method:: bytearray.count(sub, start=0, end=sys.maxsize, /)
3611+
bytes.count(sub, start=0, end=sys.maxsize, /)
3612+
bytearray.count(sub, /)
3613+
bytearray.count(sub, start=0, end=sys.maxsize, /)
36143614

36153615
Return the number of non-overlapping occurrences of subsequence *sub* in
36163616
the range [*start*, *end*]. Optional arguments *start* and *end* are

Objects/bytearrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ Return -1 on failure.
12641264
static PyObject *
12651265
bytearray_find_impl(PyByteArrayObject *self, PyObject *sub, Py_ssize_t start,
12661266
Py_ssize_t end)
1267-
/*[clinic end generated code: output=413e1cab2ae87da0 input=7a0ab8d211cc4b31]*/
1267+
/*[clinic end generated code: output=413e1cab2ae87da0 input=71e48ba61755c729]*/
12681268
{
12691269
return _bytearray_with_buffer(self, _Py_bytes_find, sub, start, end);
12701270
}

0 commit comments

Comments
 (0)