From 3559c013d2d431bba7ae39edce62d7764244e3f8 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 26 Nov 2024 06:28:20 +0000 Subject: [PATCH] more flake8 --- spalloc_client/config.py | 1 + spalloc_client/protocol_client.py | 2 +- spalloc_client/scripts/machine.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spalloc_client/config.py b/spalloc_client/config.py index 3c7617ecb..475554b6f 100644 --- a/spalloc_client/config.py +++ b/spalloc_client/config.py @@ -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": diff --git a/spalloc_client/protocol_client.py b/spalloc_client/protocol_client.py index 592e96ebd..2b172ed2d 100644 --- a/spalloc_client/protocol_client.py +++ b/spalloc_client/protocol_client.py @@ -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 diff --git a/spalloc_client/scripts/machine.py b/spalloc_client/scripts/machine.py index 584ac8324..687eb5246 100644 --- a/spalloc_client/scripts/machine.py +++ b/spalloc_client/scripts/machine.py @@ -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