Skip to content

Commit

Permalink
chore: accept a Sequence (#359)
Browse files Browse the repository at this point in the history
CRAFT-2997
  • Loading branch information
lengau authored Jun 12, 2024
1 parent 704467e commit 11b4fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions craft_application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import signal
import subprocess
import sys
from collections.abc import Iterable
from collections.abc import Iterable, Sequence
from dataclasses import dataclass, field
from functools import cached_property
from importlib import metadata
Expand Down Expand Up @@ -188,7 +188,7 @@ def add_global_argument(self, argument: craft_cli.GlobalArgument) -> None:
self._global_arguments.append(argument)

def add_command_group(
self, name: str, commands: list[type[craft_cli.BaseCommand]]
self, name: str, commands: Sequence[type[craft_cli.BaseCommand]]
) -> None:
"""Add a CommandGroup to the Application."""
self._command_groups.append(craft_cli.CommandGroup(name, commands))
Expand Down

0 comments on commit 11b4fff

Please sign in to comment.