bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)
It was listed as `binaryfunc`. It should be `unaryfunc`.
This commit is contained in:
parent
af41c567af
commit
bc5caf88ca
|
@ -285,7 +285,7 @@ sub-slots
|
||||||
+---------------------------------------------------------+-----------------------------------+--------------+
|
+---------------------------------------------------------+-----------------------------------+--------------+
|
||||||
| :c:member:`~PyNumberMethods.nb_inplace_true_divide` | :c:type:`binaryfunc` | __truediv__ |
|
| :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__ |
|
| :c:member:`~PyNumberMethods.nb_matrix_multiply` | :c:type:`binaryfunc` | __matmul__ |
|
||||||
| | | __rmatmul__ |
|
| | | __rmatmul__ |
|
||||||
|
|
Loading…
Reference in New Issue