Skip to content

Commit b318403

Browse files
committed
type fixes
1 parent 113752d commit b318403

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

spynnaker_integration_tests/test_ignores/test_ignores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_with_actual_ip_address(self):
4646
self.assert_not_spin_three()
4747

4848
# Hack in to set the ignores with used IP address
49-
GetMachineProcess._receive_chip_info = hacked_receive_chip_info # type: ignore # noqa: E501
49+
GetMachineProcess._receive_chip_info = hacked_receive_chip_info # type: ignore[method-assign] # noqa: E501
5050

5151
machine = sim.get_machine()
5252
sim.end()

unittests/model_tests/neuron/test_synaptic_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def write_memory(
7979
return
8080
if isinstance(data, int):
8181
data = struct.Struct("<I").pack(data)
82-
assert isinstance(data, (BinaryIO, bytes, bytearray))
82+
assert isinstance(data, (bytes, bytearray))
8383
self._data_to_read[base_address:base_address + len(data)] = data
8484
return (-1, -1)
8585

0 commit comments

Comments
 (0)