Skip to content

Commit 6258c1f

Browse files
bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)
It was listed as `binaryfunc`. It should be `unaryfunc`. (cherry picked from commit bc5caf8) Co-authored-by: Hai Shi <[email protected]>
1 parent 67cf0ae commit 6258c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ sub-slots
285285
+---------------------------------------------------------+-----------------------------------+--------------+
286286
| :c:member:`~PyNumberMethods.nb_inplace_true_divide` | :c:type:`binaryfunc` | __truediv__ |
287287
+---------------------------------------------------------+-----------------------------------+--------------+
288-
| :c:member:`~PyNumberMethods.nb_index` | :c:type:`binaryfunc` | __index__ |
288+
| :c:member:`~PyNumberMethods.nb_index` | :c:type:`unaryfunc` | __index__ |
289289
+---------------------------------------------------------+-----------------------------------+--------------+
290290
| :c:member:`~PyNumberMethods.nb_matrix_multiply` | :c:type:`binaryfunc` | __matmul__ |
291291
| | | __rmatmul__ |

0 commit comments

Comments
 (0)