mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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__ |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue