Skip to content

Commit bc943f9

Browse files
committed
fix(typing): Remove int restriction from decode_int
The only thing is done with this value is a direct `int()` call. We should not restrict the type of the `value` to `int`, everything should be acceptable which is acceptable by `int()`.
1 parent ef72b39 commit bc943f9

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)