Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Dec 16, 2024
1 parent a4f35b6 commit 425eb1c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions spinn_pdp2/input_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def generate_machine_data_specification(


@overrides(AbstractRewritesDataSpecification.regenerate_data_specification)
def regenerate_data_specification(
self, spec: DataSpecificationReloader, placement: Placement):
def regenerate_data_specification(self, spec: DataSpecificationReloader,
placement: Placement) -> None:
# Reserve and write the stage configuration region
spec.reserve_memory_region (MLPRegions.STAGE.value,
self._STAGE_CONFIGURATION_BYTES)
Expand All @@ -350,7 +350,7 @@ def reload_required(self) -> bool:


@overrides(AbstractRewritesDataSpecification.set_reload_required)
def set_reload_required(self, new_value: bool):
def set_reload_required(self, new_value: bool) -> None:
"""
TODO: not really sure what this method is used for!
"""
Expand Down
6 changes: 3 additions & 3 deletions spinn_pdp2/sum_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ def generate_machine_data_specification(


@overrides(AbstractRewritesDataSpecification.regenerate_data_specification)
def regenerate_data_specification(
self, spec: DataSpecificationReloader, placement: Placement):
def regenerate_data_specification(self, spec: DataSpecificationReloader,
placement: Placement) -> None:
# Reserve and write the stage configuration region
spec.reserve_memory_region (MLPRegions.STAGE.value,
self._STAGE_CONFIGURATION_BYTES)
Expand All @@ -379,7 +379,7 @@ def reload_required(self) -> bool:


@overrides(AbstractRewritesDataSpecification.set_reload_required)
def set_reload_required(self, new_value: bool):
def set_reload_required(self, new_value: bool) -> None:
"""
TODO: not really sure what this method is used for!
"""
Expand Down
6 changes: 3 additions & 3 deletions spinn_pdp2/threshold_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ def generate_machine_data_specification(


@overrides(AbstractRewritesDataSpecification.regenerate_data_specification)
def regenerate_data_specification(
self, spec: DataSpecificationReloader, placement: Placement):
def regenerate_data_specification(self, spec: DataSpecificationReloader,
placement: Placement) -> None:
# reserve and write the stage configuration region
spec.reserve_memory_region (MLPRegions.STAGE.value,
self._STAGE_CONFIGURATION_BYTES)
Expand All @@ -561,7 +561,7 @@ def reload_required(self) -> bool:


@overrides(AbstractRewritesDataSpecification.set_reload_required)
def set_reload_required(self, new_value: bool):
def set_reload_required(self, new_value: bool) -> None:
"""
TODO: not really sure what this method is used for!
"""
Expand Down
6 changes: 3 additions & 3 deletions spinn_pdp2/weight_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def generate_machine_data_specification(


@overrides(AbstractRewritesDataSpecification.regenerate_data_specification)
def regenerate_data_specification(
self, spec: DataSpecificationReloader, placement: Placement):
def regenerate_data_specification(self, spec: DataSpecificationReloader,
placement: Placement) -> None:
# Reserve and write the stage configuration region
spec.reserve_memory_region (MLPRegions.STAGE.value,
self._STAGE_CONFIGURATION_BYTES)
Expand All @@ -413,7 +413,7 @@ def reload_required(self) -> bool:


@overrides(AbstractRewritesDataSpecification.set_reload_required)
def set_reload_required(self, new_value: bool):
def set_reload_required(self, new_value: bool) -> None:
"""
TODO: not really sure what this method is used for!
"""
Expand Down

0 comments on commit 425eb1c

Please sign in to comment.