Skip to content

Commit 54a8921

Browse files
authored
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.
1 parent 804c213 commit 54a8921

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,7 @@ _PyEval_FormatKwargsError(PyThreadState *tstate, PyObject *func, PyObject *kwarg
34093409
_PyErr_Format(
34103410
tstate, PyExc_TypeError,
34113411
"%V got multiple values for keyword argument '%S'",
3412-
funcstr, "finction", dupkey);
3412+
funcstr, "function", dupkey);
34133413
Py_XDECREF(funcstr);
34143414
return;
34153415
}

0 commit comments

Comments
 (0)