Skip to content

Commit 1fece38

Browse files
committed
typing fixes
1 parent 2046cff commit 1fece38

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

spynnaker/pyNN/models/neuron/synapse_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def convert_to_connections(
386386
synapse_info: SynapseInformation, post_vertex_slice: Slice,
387387
n_pre_atoms: int, max_row_length: int, n_synapse_types: int,
388388
weight_scales: WeightScales,
389-
data: Union[bytes, memoryview, NDArray, None],
389+
data: bytearray | bytes | memoryview | NDArray | None,
390390
delayed: bool, post_vertex_max_delay_ticks: int,
391391
max_atoms_per_core: int) -> ConnectionsArray:
392392
"""

unittests/model_tests/neuron/test_synaptic_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
import shutil
1515
import struct
16-
from typing import Any, BinaryIO, List, Optional, Sequence, Tuple, Union
16+
from typing import Any, BinaryIO, List, Optional, Sequence, Tuple
1717
import unittest
1818
from tempfile import mkdtemp
1919
import numpy

0 commit comments

Comments
 (0)