Skip to content

Commit

Permalink
Type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Oct 4, 2024
1 parent 11efb06 commit 3cdf429
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spynnaker/pyNN/extra_algorithms/delay_support_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@


def delay_support_adder() -> Tuple[
Sequence[DelayExtensionVertex], Sequence[ApplicationEdge]]:
Sequence[DelayExtensionVertex], Sequence[Tuple[ApplicationEdge, str]]]:
"""
Adds the delay extensions to the application graph, now that all the
splitter objects have been set.
:return: The delay vertices and delay edges that were added
:rtype: tuple(list(DelayExtensionVertex), list(DelayedApplicationEdge or
DelayAfferentApplicationEdge))
DelayAfferentApplicationEdge, str))
"""
adder = _DelaySupportAdder()
# pylint: disable=protected-access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, delay: Weight_Delay_In_Types = None):

# Store the sources to avoid recalculation
self.__cached_sources: Dict[ApplicationVertex, Dict[
Tuple(PopulationApplicationVertex, str),
Tuple[PopulationApplicationVertex, str],
List[Source]]] = dict()

@property
Expand Down Expand Up @@ -250,7 +250,7 @@ def write_parameters(

def __get_sources_for_target(
self, app_vertex: AbstractPopulationVertex) -> Dict[
Tuple(PopulationApplicationVertex, str), List[Source]]:
Tuple[PopulationApplicationVertex, str], List[Source]]:
"""
Get all the application vertex sources that will hit the given
application vertex.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, delay: Weight_Delay_In_Types = None):
"""
# Store the sources to avoid recalculation
self.__cached_sources: Dict[ApplicationVertex, Dict[
Tuple(ApplicationVertex, str), List[Source]]] = dict()
Tuple[ApplicationVertex, str], List[Source]]] = dict()

super().__init__(delay)
if not isinstance(self.delay, (float, int)):
Expand Down

0 comments on commit 3cdf429

Please sign in to comment.