Fix _interpreters shared and updates argument diagnostics (#9295)

Use parameter names in dictionary validation errors to match Python 3.15.

Assisted-by: OpenAI Codex:model-version-unavailable
This commit is contained in:
youknowdot authored and GitHub committed 2026-10-22 18:11:58 +09:00
1 parent e102ccdae1
commit 580706fa19
1 file changed
+2 -2
+2 -2
View File
@@ -672,7 +672,7 @@ pub(crate) mod _interpreters {
args,
|i, obj, vm| match i {
1 => second_check(obj, vm),
2 => check_dict(obj, func, "argument 3", vm),
2 => check_dict(obj, func, "argument 'shared'", vm),
_ => Ok(()),
},
vm,
@@ -910,7 +910,7 @@ pub(crate) mod _interpreters {
.parse_with(
&args,
|i, obj, vm| match i {
1 => check_dict(obj, FUNCNAME, "argument 2", vm),
1 => check_dict(obj, FUNCNAME, "argument 'updates'", vm),
_ => Ok(()),
},
vm,