https://github.com/python/cpython/commit/54a8921140ba98461ca915fb80a043271c275b51
commit: 54a8921140ba98461ca915fb80a043271c275b51
branch: main
author: Anonymous941 <[email protected]>
committer: picnixz <[email protected]>
date: 2026-04-27T09:21:53+02:00
summary:
Fix typo in `ceval.c` error message (#148860)
Fix the "multiple values for keyword argument" error message
used when the function's `__qualname__` cannot be retrieved.
files:
M Python/ceval.c
diff --git a/Python/ceval.c b/Python/ceval.c
index 506ea591c385c0..0d7f8a62e246ae 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3409,7 +3409,7 @@ _PyEval_FormatKwargsError(PyThreadState *tstate, PyObject
*func, PyObject *kwarg
_PyErr_Format(
tstate, PyExc_TypeError,
"%V got multiple values for keyword argument '%S'",
- funcstr, "finction", dupkey);
+ funcstr, "function", dupkey);
Py_XDECREF(funcstr);
return;
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]