From 4617fba218da02afa7ab69403c1f43bd2ba2fe31 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 2 Dec 2024 10:57:44 +0000 Subject: [PATCH] None return --- spynnaker/pyNN/external_devices_models/spif_output_device.py | 4 ++-- spynnaker/pyNN/models/neuron/abstract_population_vertex.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spynnaker/pyNN/external_devices_models/spif_output_device.py b/spynnaker/pyNN/external_devices_models/spif_output_device.py index 2126d339a8..235b3c92e5 100644 --- a/spynnaker/pyNN/external_devices_models/spif_output_device.py +++ b/spynnaker/pyNN/external_devices_models/spif_output_device.py @@ -132,8 +132,8 @@ def __is_power_of_2(self, v): return (v & (v - 1) == 0) and (v != 0) @overrides(ApplicationFPGAVertex.add_incoming_edge) - def add_incoming_edge( - self, edge: ApplicationEdge, partition: ApplicationEdgePartition): + def add_incoming_edge(self, edge: ApplicationEdge, + partition: ApplicationEdgePartition) -> None: # Only add edges from PopulationApplicationVertices if not isinstance(edge.pre_vertex, PopulationApplicationVertex): if not isinstance(edge.pre_vertex, CommandSender): diff --git a/spynnaker/pyNN/models/neuron/abstract_population_vertex.py b/spynnaker/pyNN/models/neuron/abstract_population_vertex.py index 64c9fec75e..d1607220b3 100644 --- a/spynnaker/pyNN/models/neuron/abstract_population_vertex.py +++ b/spynnaker/pyNN/models/neuron/abstract_population_vertex.py @@ -467,7 +467,7 @@ def get_max_atoms_per_dimension_per_core(self) -> Tuple[int, ...]: @overrides(PopulationApplicationVertex. set_max_atoms_per_dimension_per_core) def set_max_atoms_per_dimension_per_core( - self, new_value: Union[None, int, Tuple[int, ...]]): + self, new_value: Union[None, int, Tuple[int, ...]]) -> None: if new_value is not None: max_atoms = self.__synapse_dynamics.absolute_max_atoms_per_core if numpy.prod(new_value) > max_atoms: