diff --git a/pacman/model/partitioner_splitters/abstract_splitter_common.py b/pacman/model/partitioner_splitters/abstract_splitter_common.py index b5b9d11f5..cacbbfba5 100644 --- a/pacman/model/partitioner_splitters/abstract_splitter_common.py +++ b/pacman/model/partitioner_splitters/abstract_splitter_common.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. from typing import ( - Iterable, Generic, Optional, Sequence, Tuple, TypeVar, Union) + Iterable, Generic, Optional, Sequence, Tuple, TypeVar) from spinn_utilities.abstract_base import AbstractBase, abstractmethod from pacman.exceptions import PacmanConfigurationException from pacman.model.graphs import AbstractVertex diff --git a/pacman/model/routing_info/vertex_routing_info.py b/pacman/model/routing_info/vertex_routing_info.py index e25f5f4e3..8bb2d8d19 100644 --- a/pacman/model/routing_info/vertex_routing_info.py +++ b/pacman/model/routing_info/vertex_routing_info.py @@ -11,15 +11,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Optional, Union +from typing import Optional import numpy from spinn_utilities.abstract_base import abstractmethod, AbstractBase from pacman.exceptions import PacmanConfigurationException from pacman.model.graphs import AbstractVertex -from pacman.model.graphs.application import ApplicationVertex -from pacman.model.graphs.machine import MachineVertex from .base_key_and_mask import BaseKeyAndMask diff --git a/pacman/operations/router_algorithms/application_router.py b/pacman/operations/router_algorithms/application_router.py index da1bd10e1..f328374c8 100644 --- a/pacman/operations/router_algorithms/application_router.py +++ b/pacman/operations/router_algorithms/application_router.py @@ -14,7 +14,7 @@ from collections import deque, defaultdict from typing import ( - Deque, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union) + Deque, Dict, Iterable, Iterator, List, Optional, Set, Tuple) from typing_extensions import TypeAlias from spinn_utilities.progress_bar import ProgressBar from spinn_utilities.typing.coords import XY @@ -150,8 +150,8 @@ def __add_m_vertices( for vtx in vertex.splitter.get_out_going_vertices(partition_id): self.__add_source(vtx, core, link) - def __add_source( - self, source: AbstractVertex, core: _OptInt, link: _OptInt) -> None: + def __add_source(self, source: AbstractVertex, core: _OptInt, + link: _OptInt) -> None: """ :param source: :param core: