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.
This commit is contained in:
Anonymous941 2026-04-27 03:21:53 -04:00 committed by GitHub
parent 804c213c89
commit 54a8921140
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}