[Python-checkins] bpo-44114: Remove redundant cast. (GH-26098)

miss-islington webhook-mailer at python.org
Thu May 13 16:43:03 EDT 2021


https://github.com/python/cpython/commit/e0c614e5fd017ca43cab55a9f8490133750c704f
commit: e0c614e5fd017ca43cab55a9f8490133750c704f
branch: main
author: Inada Naoki <songofacandy at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-05-13T13:42:55-07:00
summary:

bpo-44114: Remove redundant cast. (GH-26098)

files:
M Objects/dictobject.c

diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 90507d8e40016..24973c07b1d48 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 */
 };



More information about the Python-checkins mailing list