Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]>
  • Loading branch information
shihai1991 authored and miss-islington committed Jun 20, 2019
commit 27c4726dbc503c04997335b70903229e6099b124
2 changes: 1 addition & 1 deletion Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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__ |
Expand Down