From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 20 Jun 2019 03:41:41 +0000 (-0700) Subject: bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241) X-Git-Tag: v3.8.0b2~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6258c1f7160c1b073a228c9fc49ad5ac894d66ad;p=python 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 bc5caf88ca19b4c8cb9bc912c832b4807a515a60) Co-authored-by: Hai Shi --- diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 83fcc5abed..638fb0c32d 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__ |