Index: leahi_dialin/utils/conversions.py =================================================================== diff -u -r2138d06d100fdcf23f2e9069f35ee2fdee62008f -r6a318bab36cd1e28b42a0683abd5052b63ed5f20 --- leahi_dialin/utils/conversions.py (.../conversions.py) (revision 2138d06d100fdcf23f2e9069f35ee2fdee62008f) +++ leahi_dialin/utils/conversions.py (.../conversions.py) (revision 6a318bab36cd1e28b42a0683abd5052b63ed5f20) @@ -137,14 +137,14 @@ return value -def bytearray_to_byte(buffer: bytes, index: int, signed: bool = True) -> [int, int]: +def bytearray_to_byte(buffer: bytes, index: int, signed: bool = True) -> (int, int): """ Converts the buffer of bytes to a value of one(1) byte integer @param buffer: (bytes) the source buffer @param index: (int) the start index of reading the source buffer @param signed: (bool) convert to signed or unsigned value - @return: pair of the [value and incremented index by the length. + @return: The pair of the value and incremented index by the length. """ length = 1 # for a byte value = bytearray_to_value("b" if signed else "B", buffer[index:index + length]) @@ -164,14 +164,14 @@ return value, index + length -def bytearray_to_integer(buffer: bytes, index: int, signed: bool = True) -> [int, int]: +def bytearray_to_integer(buffer: bytes, index: int, signed: bool = True) -> (int, int): """ Converts the buffer of bytes to a value of four(4) byte integer @param buffer: (bytes) the source buffer @param index: (int) the start index of reading the source buffer @param signed: (bool) convert to signed or unsigned value - @return: pair of the [value and incremented index by the length. + @return: The pair of the value and incremented index by the length. """ length = 4 # for an integer value = bytearray_to_value("i" if signed else "I", buffer[index:index + length])