mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix byteorder parameter of int.from_bytes to optional
This commit is contained in:
@@ -794,6 +794,7 @@ pub struct IntOptions {
|
||||
#[derive(FromArgs)]
|
||||
struct IntFromByteArgs {
|
||||
bytes: PyBytesInner,
|
||||
#[pyarg(any, default = "ArgByteOrder::Big")]
|
||||
byteorder: ArgByteOrder,
|
||||
#[pyarg(named, optional)]
|
||||
signed: OptionalArg<ArgIntoBool>,
|
||||
|
||||
Reference in New Issue
Block a user