@@ -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
36083608arbitrary 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
0 commit comments