]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44114: Remove redundant cast. (GH-26098)
authorInada Naoki <songofacandy@gmail.com>
Thu, 13 May 2021 20:42:55 +0000 (05:42 +0900)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 20:42:55 +0000 (13:42 -0700)
Objects/dictobject.c

index 90507d8e4001686829322f9dbe978284d1bcbcf6..24973c07b1d48843b6939c89a328f4332e718d77 100644 (file)
@@ -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 */
 };