Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 13, 2024
1 parent ea86fd9 commit 04fe731
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pacman/model/graphs/machine/simple_machine_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class SimpleMachineVertex(MachineVertex):
__slots__ = ("_iptags", "_reverse_iptags", "_sdram")

def __init__(
self, sdram: Optional[AbstractSDRAM], label:Optional[str]=None,
self, sdram: Optional[AbstractSDRAM], label: Optional[str] = None,
app_vertex: Optional[ApplicationVertex] = None,
vertex_slice: Optional[Slice]=None,
vertex_slice: Optional[Slice] = None,
iptags: Optional[Iterable[IPtagResource]] = None,
reverse_iptags: Optional[Iterable[ReverseIPtagResource]] = None):
super().__init__(
Expand Down
4 changes: 2 additions & 2 deletions pacman/model/resources/iptag_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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 Any, List, Optional
from typing import Any, Optional


class IPtagResource(object):
Expand Down Expand Up @@ -108,7 +108,7 @@ def __repr__(self) -> str:
f"strip_sdp={self._strip_sdp}, tag={self._tag}, "
f"traffic_identifier={self._traffic_identifier})")

def __eq__(self, other: Any) ->bool:
def __eq__(self, other: Any) -> bool:
"""
For unit tests *only* so __hash__ and __eq__ pairing not done!
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def __create_routing_table(

return table


def __match(
iterator: _IteratorWithNext[
Tuple[Tuple[AbstractVertex, str], RoutingEntry]],
Expand Down Expand Up @@ -232,4 +233,3 @@ def __merged_keys_and_masks(
else:
yield from app_r_info.merge_machine_entries(entries)


0 comments on commit 04fe731

Please sign in to comment.