Skip to content

Commit 286810d

Browse files
jyj0816youknowone
authored andcommitted
Fix byteorder parameter of int.from_bytes to optional
1 parent 8c5a279 commit 286810d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/builtins/int.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ pub struct IntOptions {
794794
#[derive(FromArgs)]
795795
struct IntFromByteArgs {
796796
bytes: PyBytesInner,
797+
#[pyarg(any, default = "ArgByteOrder::Big")]
797798
byteorder: ArgByteOrder,
798799
#[pyarg(named, optional)]
799800
signed: OptionalArg<ArgIntoBool>,

0 commit comments

Comments
 (0)