aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/stringlib/unicode_format.h
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2025-04-01 17:18:11 +0200
committerGitHub <noreply@github.com>2025-04-01 17:18:11 +0200
commitedbf7fb1298d4c4a0b1a820b7d4094d74a395188 (patch)
treeca7dd8c079c1819e2eb09557418809f1bfae8f56 /Objects/stringlib/unicode_format.h
parent8cd29c2b533e5a1a262238695d05f2a7c44d6455 (diff)
downloadcpython-edbf7fb1298d4c4a0b1a820b7d4094d74a395188.tar.gz
cpython-edbf7fb1298d4c4a0b1a820b7d4094d74a395188.zip
gh-111178: remove redundant casts for functions with correct signatures (#131673)
Diffstat (limited to 'Objects/stringlib/unicode_format.h')
-rw-r--r--Objects/stringlib/unicode_format.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/unicode_format.h b/Objects/stringlib/unicode_format.h
index 982fc5184a5..ff32db65b11 100644
--- a/Objects/stringlib/unicode_format.h
+++ b/Objects/stringlib/unicode_format.h
@@ -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;