Fix byteorder parameter of int.from_bytes to optional

This commit is contained in:
jyj
2023-03-25 15:04:15 +09:00
committed by Jeong YunWon
parent 8c5a279ba2
commit 286810d25b

View File

@@ -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>,