]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in `ceval.c` error message (#148860)
authorAnonymous941 <36797492+Anonymous941@users.noreply.github.com>
Mon, 27 Apr 2026 07:21:53 +0000 (03:21 -0400)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2026 07:21:53 +0000 (09:21 +0200)
Fix the "multiple values for keyword argument" error message
used when the function's `__qualname__` cannot be retrieved.

Python/ceval.c

index 506ea591c385c0f9ebf863c7dac636229c820b53..0d7f8a62e246aed75a22787a48064264ebc7677b 100644 (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;
     }