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
30 changed files with 96 additions and 101 deletions
+2 -2
View File
@@ -1100,7 +1100,7 @@ static PyTypeObject PyFormatterIter_Type = {
describing the parsed elements. It's a wrapper around
stringlib/string_format.h's MarkupIterator */
static PyObject *
formatter_parser(PyObject *ignored, PyObject *self)
formatter_parser(PyObject *Py_UNUSED(module), PyObject *self)
{
formatteriterobject *it;
@@ -1236,7 +1236,7 @@ static PyTypeObject PyFieldNameIter_Type = {
field_name_split. The iterator it returns is a
FieldNameIterator */
static PyObject *
formatter_field_name_split(PyObject *ignored, PyObject *self)
formatter_field_name_split(PyObject *Py_UNUSED(module), PyObject *self)
{
SubString first;
Py_ssize_t first_idx;