From: Hai Shi Date: Thu, 20 Jun 2019 03:32:24 +0000 (-0500) Subject: bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc5caf88ca19b4c8cb9bc912c832b4807a515a60;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`. --- 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__ |