Skip to content

Commit

Permalink
added explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jul 13, 2022
1 parent 4a5ff36 commit 0fce08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacepackets/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def value(self, val: Union[int, bytes, bytearray]):
self.byte_len, self.value
)
elif isinstance(val, bytes) or isinstance(val, bytearray):
self._val, self._val_as_bytes = self._verify_bytes_value(val)
self._val, self._val_as_bytes = self._verify_bytes_value(bytes(val))

@property
def as_bytes(self) -> bytes:
Expand Down

0 comments on commit 0fce08f

Please sign in to comment.