Commit bc5caf88 authored by Hai Shi's avatar Hai Shi Committed by Miss Islington (bot)

bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)



It was listed as `binaryfunc`. It should be `unaryfunc`.
parent af41c567
......@@ -285,7 +285,7 @@ sub-slots
+---------------------------------------------------------+-----------------------------------+--------------+
| :c:member:`~PyNumberMethods.nb_inplace_true_divide` | :c:type:`binaryfunc` | __truediv__ |
+---------------------------------------------------------+-----------------------------------+--------------+
| :c:member:`~PyNumberMethods.nb_index` | :c:type:`binaryfunc` | __index__ |
| :c:member:`~PyNumberMethods.nb_index` | :c:type:`unaryfunc` | __index__ |
+---------------------------------------------------------+-----------------------------------+--------------+
| :c:member:`~PyNumberMethods.nb_matrix_multiply` | :c:type:`binaryfunc` | __matmul__ |
| | | __rmatmul__ |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment