Skip to content

Commit 7fd652d

Browse files
committed
Fix index() signature
1 parent 700c166 commit 7fd652d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/stdtypes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,13 +1040,13 @@ operations have the same priority as the corresponding numeric operations. [3]_
10401040

10411041
Return the total number of occurrences of *value* in *sequence*.
10421042

1043-
.. method:: list.index(value, start=0, stop=None, /)
1044-
range.index(value, start=0, stop=None, /)
1045-
tuple.index(value, start=0, stop=None, /)
1043+
.. method:: list.index(value[, start[, stop])
1044+
range.index(value[, start[, stop])
1045+
tuple.index(value[, start[, stop])
10461046
:no-contents-entry:
10471047
:no-index-entry:
10481048
:no-typesetting:
1049-
.. method:: sequence.index(value, start=0, stop=None, /)
1049+
.. method:: sequence.index(value[, start[, stop])
10501050

10511051
Return the index of the first occurrence of *value* in *sequence*.
10521052

0 commit comments

Comments
 (0)