Skip to content

Commit a66f6ef

Browse files
author
János Kukovecz
authored
Merge pull request #499 from onekey-sec/fix-decode-int-type-hint
fix(typing): Remove int restriction from decode_int
2 parents ef72b39 + bc943f9 commit a66f6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unblob/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def convert_int64(value: bytes, endian: Endian) -> int:
144144
raise InvalidInputFormat from exc
145145

146146

147-
def decode_int(value: bytes, base: int) -> int:
147+
def decode_int(value, base: int) -> int:
148148
try:
149149
return int(value, base)
150150
except ValueError as exc:

0 commit comments

Comments
 (0)