@@ -606,7 +606,7 @@ def __open_connection(self) -> SCAMPConnection:
606606
607607 def _send_data_via_extra_monitors (
608608 self , destination_chip : Chip , start_address : int ,
609- data_to_write : bytes ) -> None :
609+ data_to_write : bytearray | bytes ) -> None :
610610 """
611611 Sends data using the extra monitor cores.
612612
@@ -739,7 +739,7 @@ def _read_in_missing_seq_nums(
739739 return seen_last , seen_all
740740
741741 def _outgoing_retransmit_missing_seq_nums (
742- self , data_to_write : bytes , missing : Set [int ],
742+ self , data_to_write : bytearray | bytes , missing : Set [int ],
743743 connection : SCAMPConnection ) -> None :
744744 """
745745 Transmits back into SpiNNaker the missing data based off missing
@@ -772,7 +772,7 @@ def __position_from_seq_number(seq_num: int) -> int:
772772 return BYTES_IN_FULL_PACKET_WITH_KEY * seq_num
773773
774774 def __make_data_in_stream_message (
775- self , data_to_write : bytes , seq_num : int ,
775+ self , data_to_write : bytearray | bytes , seq_num : int ,
776776 position : Optional [int ]) -> Tuple [SDPMessage , int ]:
777777 """
778778 Determine the data needed to be sent to the SpiNNaker machine
@@ -833,7 +833,7 @@ def __send_tell_flag(self, connection: SCAMPConnection) -> None:
833833 _DataInCommands .SEND_TELL , self ._transaction_id )))
834834
835835 def _send_all_data_based_packets (
836- self , data_to_write : bytes , start_address : int ,
836+ self , data_to_write : bytearray | bytes , start_address : int ,
837837 connection : SCAMPConnection ) -> None :
838838 """
839839 Send all the data as one block.
0 commit comments