mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
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:
1 parent
e102ccdae1
commit
580706fa19
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user