Skip to content

Commit 4617fba

Browse files
committed
None return
1 parent c4c3605 commit 4617fba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spynnaker/pyNN/external_devices_models/spif_output_device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def __is_power_of_2(self, v):
132132
return (v & (v - 1) == 0) and (v != 0)
133133

134134
@overrides(ApplicationFPGAVertex.add_incoming_edge)
135-
def add_incoming_edge(
136-
self, edge: ApplicationEdge, partition: ApplicationEdgePartition):
135+
def add_incoming_edge(self, edge: ApplicationEdge,
136+
partition: ApplicationEdgePartition) -> None:
137137
# Only add edges from PopulationApplicationVertices
138138
if not isinstance(edge.pre_vertex, PopulationApplicationVertex):
139139
if not isinstance(edge.pre_vertex, CommandSender):

spynnaker/pyNN/models/neuron/abstract_population_vertex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def get_max_atoms_per_dimension_per_core(self) -> Tuple[int, ...]:
467467
@overrides(PopulationApplicationVertex.
468468
set_max_atoms_per_dimension_per_core)
469469
def set_max_atoms_per_dimension_per_core(
470-
self, new_value: Union[None, int, Tuple[int, ...]]):
470+
self, new_value: Union[None, int, Tuple[int, ...]]) -> None:
471471
if new_value is not None:
472472
max_atoms = self.__synapse_dynamics.absolute_max_atoms_per_core
473473
if numpy.prod(new_value) > max_atoms:

0 commit comments

Comments
 (0)