gh-111178: remove redundant casts for functions with correct signatures (#131673)

This commit is contained in:
Bénédikt Tran 2025-04-01 17:18:11 +02:00 committed by GitHub
parent 8cd29c2b53
commit edbf7fb129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 96 additions and 101 deletions

View file

@ -2106,7 +2106,7 @@ static PyNumberMethods none_as_number = {
0, /* nb_negative */
0, /* nb_positive */
0, /* nb_absolute */
(inquiry)none_bool, /* nb_bool */
none_bool, /* nb_bool */
0, /* nb_invert */
0, /* nb_lshift */
0, /* nb_rshift */
@ -2152,7 +2152,7 @@ PyTypeObject _PyNone_Type = {
&none_as_number, /*tp_as_number*/
0, /*tp_as_sequence*/
0, /*tp_as_mapping*/
(hashfunc)none_hash,/*tp_hash */
none_hash, /*tp_hash */
0, /*tp_call */
0, /*tp_str */
0, /*tp_getattro */