Skip to content

Commit

Permalink
more typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jun 24, 2024
1 parent ec0ab80 commit 9aa35e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SDRAMSplitter(AbstractSplitterCommon):
"_post_vertices",
"_partition"]

def __init__(self) -> 'SDRAMSplitter':
def __init__(self) -> None:
super().__init__()
self.__pre_vertex = None
self._post_vertices: list[SDRAMMachineVertex] = list()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from typing import List
from spinn_utilities.overrides import overrides
from pacman.model.graphs.common import Slice
from pacman.model.graphs.machine import SDRAMMachineEdge
from pacman.model.graphs.machine import MachineVertex, SDRAMMachineEdge
from pacman.model.partitioner_splitters import AbstractSplitterCommon
from pacman.model.graphs.machine import SourceSegmentedSDRAMMachinePartition
from gfe_integration_tests.sdram_edge_tests.common import SDRAMMachineVertex
Expand All @@ -28,10 +28,12 @@ class SDRAMSplitter(AbstractSplitterCommon):

__slots__ = [
"_pre_vertices",
"__post_vertex",
"_partition"]

def __init__(self) -> 'SDRAMSplitter':
def __init__(self) -> None:
super().__init__()
self.__post_vertex = None
self._pre_vertices: List[SourceSegmentedSDRAMMachinePartition] = list()

@property
Expand All @@ -41,8 +43,8 @@ def _post_vertex(self):

@overrides(AbstractSplitterCommon.get_out_going_vertices)
def get_out_going_vertices(
self, partition_id: str) -> List[SourceSegmentedSDRAMMachinePartition]:
return []
self, partition_id: str) -> List[MachineVertex]:
return [self.__post_vertex]

@overrides(AbstractSplitterCommon.get_in_coming_vertices)
def get_in_coming_vertices(
Expand Down Expand Up @@ -95,7 +97,7 @@ def get_in_coming_slices(self) -> List[Slice]:

@overrides(AbstractSplitterCommon.machine_vertices_for_recording)
def machine_vertices_for_recording(
self, variable_to_record: str) -> List[SourceSegmentedSDRAMMachinePartition]:
self, variable_to_record: str) -> List[MachineVertex]:
mv = [self._post_vertex]
mv.extend(self._pre_vertices)
return mv
Expand Down

0 comments on commit 9aa35e4

Please sign in to comment.