Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jun 27, 2024
1 parent 3b797d2 commit 05284f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion spalloc_client/scripts/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def __init__(self):
super().__init__()
self.parser = None

def get_and_display_machine_info(self, client, args, t):
def get_and_display_machine_info(
self, client: ProtocolClient, args: List[object], t: Terminal):
""" Gets and displays info for the machine(s) """
# Get all information
machines = client.list_machines(timeout=args.timeout)
jobs = client.list_jobs(timeout=args.timeout)
Expand Down
2 changes: 1 addition & 1 deletion spalloc_client/scripts/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
added.
.. image:: _static/spalloc_ps.png
:alt: Jobs being listed by spalloc- proces scripts
:alt: Jobs being listed by spalloc- process scripts
This list may be filtered by owner or machine with the ``--owner`` and
``--machine`` arguments.
Expand Down
9 changes: 5 additions & 4 deletions spalloc_client/scripts/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@


class Terminate(Exception):
"""
An Exception that can be used to exit the program.
"""

def __init__(self, code: int, *args: Tuple[object]):
"""
An Exception that can be used to exit the program.
"""
super().__init__()
super().__init__()
self._code = code
args = list(args)
message = args.pop(0) if args else None
Expand Down

0 comments on commit 05284f1

Please sign in to comment.