Skip to content

Commit

Permalink
more flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 26, 2024
1 parent c508187 commit 3559c01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions spalloc_client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def _read_any_str(
except configparser.NoOptionError:
return None


def _read_none_or_str(
parser: configparser.ConfigParser, option: str) -> Optional[str]:
if parser.get(SECTION, option) == "None":
Expand Down
2 changes: 1 addition & 1 deletion spalloc_client/protocol_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def get_board_position(
""" Gets the position of board x, y, z on the given machine. """
# pylint: disable=too-many-arguments
return cast(dict, self.call("get_board_position", timeout,
machine_name, x, y, z))
machine_name, x, y, z))

def get_board_at_position(self, machine_name: str, x: int, y: int, z: int,
timeout: Optional[int] = None
Expand Down
2 changes: 1 addition & 1 deletion spalloc_client/scripts/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from collections import defaultdict
import argparse
import sys
from typing import Any, Callable, cast, Dict, Iterator, List, Optional
from typing import Any, cast, Dict, Iterator, List, Optional

from spinn_utilities.overrides import overrides
from spinn_utilities.typing.json import JsonObject, JsonObjectArray
Expand Down

0 comments on commit 3559c01

Please sign in to comment.