Skip to content

Commit 17ff9ca

Browse files
committed
fix: BinaryContext.append_bytes did not accept bytearray due to a type
1 parent 2590767 commit 17ff9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/smartinspect/common/context/binary_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def append_bytes(self, bytestring: (bytes, bytearray), offset: int = 0, length:
7474
"""
7575

7676
if not isinstance(bytestring, bytes) and \
77-
not isinstance(bytestring, bytes):
77+
not isinstance(bytestring, bytearray):
7878
raise TypeError("bytestring must be bytes sequence")
7979
if not isinstance(offset, int):
8080
raise TypeError("offset must be an integer")

0 commit comments

Comments
 (0)