Skip to content

Commit

Permalink
bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (
Browse files Browse the repository at this point in the history
…pythonGH-14241)

It was listed as `binaryfunc`. It should be `unaryfunc`.
  • Loading branch information
shihai1991 authored and lisroach committed Sep 9, 2019
1 parent f0c5954 commit 386a43d
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 386a43d

Please sign in to comment.