mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-111178: remove redundant casts for functions with correct signatures (#131673)
This commit is contained in:
parent
8cd29c2b53
commit
edbf7fb129
30 changed files with 96 additions and 101 deletions
|
|
@ -5927,7 +5927,7 @@ dictview_mapping(PyObject *view, void *Py_UNUSED(ignored)) {
|
|||
}
|
||||
|
||||
static PyGetSetDef dictview_getset[] = {
|
||||
{"mapping", dictview_mapping, (setter)NULL,
|
||||
{"mapping", dictview_mapping, NULL,
|
||||
PyDoc_STR("dictionary that this view refers to"), NULL},
|
||||
{0}
|
||||
};
|
||||
|
|
@ -6344,7 +6344,7 @@ dictviews_xor(PyObject* self, PyObject *other)
|
|||
|
||||
static PyNumberMethods dictviews_as_number = {
|
||||
0, /*nb_add*/
|
||||
(binaryfunc)dictviews_sub, /*nb_subtract*/
|
||||
dictviews_sub, /*nb_subtract*/
|
||||
0, /*nb_multiply*/
|
||||
0, /*nb_remainder*/
|
||||
0, /*nb_divmod*/
|
||||
|
|
@ -6356,9 +6356,9 @@ static PyNumberMethods dictviews_as_number = {
|
|||
0, /*nb_invert*/
|
||||
0, /*nb_lshift*/
|
||||
0, /*nb_rshift*/
|
||||
(binaryfunc)_PyDictView_Intersect, /*nb_and*/
|
||||
(binaryfunc)dictviews_xor, /*nb_xor*/
|
||||
(binaryfunc)dictviews_or, /*nb_or*/
|
||||
_PyDictView_Intersect, /*nb_and*/
|
||||
dictviews_xor, /*nb_xor*/
|
||||
dictviews_or, /*nb_or*/
|
||||
};
|
||||
|
||||
static PyObject*
|
||||
|
|
@ -6616,7 +6616,7 @@ static PySequenceMethods dictvalues_as_sequence = {
|
|||
0, /* sq_slice */
|
||||
0, /* sq_ass_item */
|
||||
0, /* sq_ass_slice */
|
||||
(objobjproc)0, /* sq_contains */
|
||||
0, /* sq_contains */
|
||||
};
|
||||
|
||||
static PyObject* dictvalues_reversed(PyObject *dv, PyObject *Py_UNUSED(ignored));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue