@@ -2210,8 +2210,8 @@ PyList_AsTuple(PyObject *v) |
|
|
2210 |
2210 |
list.index |
2211 |
2211 |
|
2212 |
2212 |
value: object |
2213 |
|
- start: object(converter="_PyEval_SliceIndex", type="Py_ssize_t") = 0 |
2214 |
|
- stop: object(converter="_PyEval_SliceIndex", type="Py_ssize_t", c_default="PY_SSIZE_T_MAX") = sys.maxsize |
|
2213 |
+ start: slice_index(accept={int}) = 0 |
|
2214 |
+ stop: slice_index(accept={int}, c_default="PY_SSIZE_T_MAX") = sys.maxsize |
2215 |
2215 |
/ |
2216 |
2216 |
|
2217 |
2217 |
Return first index of value. |
@@ -2222,7 +2222,7 @@ Raises ValueError if the value is not present. |
|
|
2222 |
2222 |
static PyObject * |
2223 |
2223 |
list_index_impl(PyListObject *self, PyObject *value, Py_ssize_t start, |
2224 |
2224 |
Py_ssize_t stop) |
2225 |
|
-/*[clinic end generated code: output=ec51b88787e4e481 input=70b7247e398a6999]*/ |
|
2225 |
+/*[clinic end generated code: output=ec51b88787e4e481 input=40ec5826303a0eb1]*/ |
2226 |
2226 |
{ |
2227 |
2227 |
Py_ssize_t i; |
2228 |
2228 |
|