Skip to content

Commit cc61fdd

Browse files
committed
Fix flake8 and mypy flagged issues
Signed-off-by: Pedro Algarvio <[email protected]>
1 parent a8dd05f commit cc61fdd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ptscripts/parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,14 @@ def __getattr__(self, attr):
415415

416416
class GroupReference:
417417
"""
418-
Simple class to hold tools command group names comparable to how
419-
they would be invoked using the CLI.
418+
Simple class to hold tools command group names.
420419
421-
For example, tools vm create is stored as ("tools", "vm", "create")
420+
These are comparable to how they would be invoked using the CLI.
421+
For example, ``tools vm create`` is stored as ``("tools", "vm", "create")``
422422
"""
423423

424424
_instance: GroupReference | None = None
425-
_commands: list[str]
425+
_commands: dict[tuple[str, ...], CommandGroup]
426426

427427
def __new__(cls):
428428
"""
@@ -435,7 +435,7 @@ def __new__(cls):
435435
return cls._instance
436436

437437
@classmethod
438-
def add_command(cls, cli_name: tuple[str], group: CommandGroup) -> None:
438+
def add_command(cls, cli_name: tuple[str, ...], group: CommandGroup) -> None:
439439
"""
440440
Add a tools command.
441441
"""

0 commit comments

Comments
 (0)