mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Suppress warning and rename obj to _zelf in arg_check
This commit is contained in:
@@ -82,7 +82,7 @@ fn bool_new(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
|
||||
}
|
||||
|
||||
fn bool_doc(vm: &mut VirtualMachine, args: PyFuncArgs) -> Result<PyObjectRef, PyObjectRef> {
|
||||
arg_check!(vm, args, required = [(obj, None)]);
|
||||
arg_check!(vm, args, required = [(_zelf, None)]);
|
||||
let s = "bool(x) -> bool
|
||||
|
||||
Returns True when the argument x is true, False otherwise.
|
||||
|
||||
Reference in New Issue
Block a user