We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1e3d6c + 6ce793d commit 4e35843Copy full SHA for 4e35843
odxtools/minmaxlengthtype.py
@@ -74,7 +74,7 @@ def __termination_sequence(self) -> bytes:
74
@override
75
def encode_into_pdu(self, internal_value: AtomicOdxType, encode_state: EncodeState) -> None:
76
77
- if not isinstance(internal_value, (bytes, str)):
+ if not isinstance(internal_value, (bytes, str, bytearray)):
78
odxraise("MinMaxLengthType is currently only implemented for strings and byte arrays",
79
EncodeError)
80
0 commit comments