Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 7, 2025
1 parent 246e5de commit b40efa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions pacman/model/routing_info/vertex_routing_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions pacman/operations/router_algorithms/application_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b40efa0

Please sign in to comment.