Skip to content

Commit 362d0e7

Browse files
committed
Convert divmod
1 parent 8feff79 commit 362d0e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm/src/builtins.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ fn builtin_dir(obj: OptionalArg<PyObjectRef>, vm: &VirtualMachine) -> PyResult {
154154
Ok(sorted)
155155
}
156156

157-
fn builtin_divmod(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
158-
arg_check!(vm, args, required = [(a, None), (b, None)]);
157+
fn builtin_divmod(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
159158
vm.call_or_reflection(
160159
a.clone(),
161160
b.clone(),

0 commit comments

Comments
 (0)