diff options
author | Hai Shi <shihai1992@gmail.com> | 2019-06-20 03:32:24 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-20 03:32:23 (GMT) |
commit | bc5caf88ca19b4c8cb9bc912c832b4807a515a60 (patch) | |
tree | a834628280ed49bcad585df6498310faf325927d /Doc/c-api/typeobj.rst | |
parent | af41c567af81de7c4408e2e2617f1d3747408434 (diff) | |
download | cpython-bc5caf88ca19b4c8cb9bc912c832b4807a515a60.zip cpython-bc5caf88ca19b4c8cb9bc912c832b4807a515a60.tar.gz cpython-bc5caf88ca19b4c8cb9bc912c832b4807a515a60.tar.bz2 |
bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)
It was listed as `binaryfunc`. It should be `unaryfunc`.
Diffstat (limited to 'Doc/c-api/typeobj.rst')
-rw-r--r-- | Doc/c-api/typeobj.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 83fcc5a..638fb0c 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -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__ | |