From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 13 May 2021 21:07:31 +0000 (-0700) Subject: bpo-44114: Remove redundant cast. (GH-26098) X-Git-Tag: v3.10.0b2~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4c3beb5ad6b55c20b6dc7c6a92860f467afa75b;p=thirdparty%2FPython%2Fcpython.git bpo-44114: Remove redundant cast. (GH-26098) (cherry picked from commit e0c614e5fd017ca43cab55a9f8490133750c704f) Co-authored-by: Inada Naoki --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 90507d8e4001..24973c07b1d4 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -4834,7 +4834,7 @@ PyDoc_STRVAR(reversed_items_doc, static PyMethodDef dictitems_methods[] = { {"isdisjoint", (PyCFunction)dictviews_isdisjoint, METH_O, isdisjoint_doc}, - {"__reversed__", (PyCFunction)(void(*)(void))dictitems_reversed, METH_NOARGS, + {"__reversed__", (PyCFunction)dictitems_reversed, METH_NOARGS, reversed_items_doc}, {NULL, NULL} /* sentinel */ }; @@ -4915,7 +4915,7 @@ PyDoc_STRVAR(reversed_values_doc, "Return a reverse iterator over the dict values."); static PyMethodDef dictvalues_methods[] = { - {"__reversed__", (PyCFunction)(void(*)(void))dictvalues_reversed, METH_NOARGS, + {"__reversed__", (PyCFunction)dictvalues_reversed, METH_NOARGS, reversed_values_doc}, {NULL, NULL} /* sentinel */ };