diff --git a/spalloc_client/scripts/job.py b/spalloc_client/scripts/job.py index 2d8cb6a05..737d6651a 100644 --- a/spalloc_client/scripts/job.py +++ b/spalloc_client/scripts/job.py @@ -340,7 +340,7 @@ def get_job_id(self, client: ProtocolClient, return cast(int, job_ids[0]) @overrides(Script.get_parser) - def get_parser(self, cfg: Dict[str, Any]) -> argparse.ArgumentParser: + def get_parser(self, cfg: Dict[str, str]) -> argparse.ArgumentParser: parser = argparse.ArgumentParser( description="Manage running jobs.") parser.add_argument( diff --git a/spalloc_client/scripts/machine.py b/spalloc_client/scripts/machine.py index 687eb5246..5da62d6fa 100644 --- a/spalloc_client/scripts/machine.py +++ b/spalloc_client/scripts/machine.py @@ -257,7 +257,7 @@ def get_and_display_machine_info( show_machine(t, machines, jobs, args.machine, not args.detailed) @overrides(Script.get_parser) - def get_parser(self, cfg: Dict[str, Any]) -> argparse.ArgumentParser: + def get_parser(self, cfg: Dict[str, str]) -> argparse.ArgumentParser: parser = argparse.ArgumentParser( description="Get the state of individual machines.") parser.add_argument( diff --git a/spalloc_client/scripts/ps.py b/spalloc_client/scripts/ps.py index 6f4aea0b9..b2e055b3e 100644 --- a/spalloc_client/scripts/ps.py +++ b/spalloc_client/scripts/ps.py @@ -128,7 +128,7 @@ class ProcessListScript(Script): An object form Job scripts. """ @overrides(Script.get_parser) - def get_parser(self, cfg: Dict[str, Any]) -> argparse.ArgumentParser: + def get_parser(self, cfg: Dict[str, str]) -> argparse.ArgumentParser: parser = argparse.ArgumentParser(description="List all active jobs.") parser.add_argument( "--version", "-V", action="version", version=__version__) diff --git a/spalloc_client/scripts/support.py b/spalloc_client/scripts/support.py index 7b0462f0e..e3b3fb6eb 100644 --- a/spalloc_client/scripts/support.py +++ b/spalloc_client/scripts/support.py @@ -55,7 +55,7 @@ class Script(object, metaclass=AbstractBase): def __init__(self) -> None: self.client_factory = ProtocolClient - def get_parser(self, cfg: Dict[str, Any]) -> ArgumentParser: + def get_parser(self, cfg: Dict[str, str]) -> ArgumentParser: """ Return a set-up instance of :py:class:`argparse.ArgumentParser` """ raise NotImplementedError diff --git a/spalloc_client/scripts/where_is.py b/spalloc_client/scripts/where_is.py index b9e7cee57..bca63567a 100644 --- a/spalloc_client/scripts/where_is.py +++ b/spalloc_client/scripts/where_is.py @@ -88,7 +88,7 @@ def __init__(self) -> None: self.show_board_chip = False @overrides(Script.get_parser) - def get_parser(self, cfg: Dict[str, Any]) -> argparse.ArgumentParser: + def get_parser(self, cfg: Dict[str, str]) -> argparse.ArgumentParser: parser = argparse.ArgumentParser( description="Find out the location (physical or logical) of a " "chip or board.")