@@ -23,22 +23,22 @@ def __init__(self, data: bytes, connection_id: UUID, issuing_command: Command, d
2323 self ._address = data [1 ] & self .ADDRESS_MASK
2424 self ._sequence = data [4 ] & 0x03
2525
26- is_using_crc : bool = (data [4 ] & 0x04 )!= 0
27- reply_message_footer_size : int = 2 if is_using_crc else 1
26+ is_using_crc = (data [4 ] & 0x04 )!= 0
27+ reply_message_footer_size = 2 if is_using_crc else 1
2828
29- is_secure_control_block_present : bool = (data [4 ] & 0x08 )!= 0
30- secure_block_size : int = (data [5 ] & 0xFF ) if is_secure_control_block_present else 0
29+ is_secure_control_block_present = (data [4 ] & 0x08 )!= 0
30+ secure_block_size = (data [5 ] & 0xFF ) if is_secure_control_block_present else 0
3131 self ._security_block_type = (data [6 ] & 0xFF ) if is_secure_control_block_present else 0
3232 self ._secure_block_data = data [(self .REPLY_MESSAGE_HEADER_SIZE + 2 ):][:(secure_block_size - 2 )] if is_secure_control_block_present else b''
3333
34- mac_size : int = self .MAC_SIZE if self .is_secure_message else 0
35- message_length : int = len (data ) - (reply_message_footer_size + mac_size )
34+ mac_size = self .MAC_SIZE if self .is_secure_message else 0
35+ message_length = len (data ) - (reply_message_footer_size + mac_size )
3636
3737 self ._mac = data [message_length :][:mac_size ]
3838 self ._type = ReplyType (data [self .REPLY_TYPE_INDEX + secure_block_size ] & 0xFF )
3939
40- data_start : int = self .REPLY_MESSAGE_HEADER_SIZE + secure_block_size + 1
41- data_end : int = - reply_message_footer_size - mac_size
40+ data_start = self .REPLY_MESSAGE_HEADER_SIZE + secure_block_size + 1
41+ data_end = - reply_message_footer_size - mac_size
4242 self ._extract_reply_data = data [data_start :data_end ]
4343
4444 if self .security_block_type == SecurityBlockType .ReplyMessageWithDataSecurity .value :
0 commit comments