fix: list_commands returns strings (#2372)

list_commands previously returned `Iterable[click.Command]` and now returns `Iterable[str]` to comply with the method's return value.
This commit is contained in:
Devin Fee
2018-08-09 10:24:23 -07:00
committed by Jelle Zijlstra
parent 066d8becf9
commit 047040887b

View File

@@ -278,7 +278,7 @@ class MultiCommand(Command):
def get_command(self, ctx: Context, cmd_name: str) -> Optional[Command]:
...
def list_commands(self, ctx: Context) -> Iterable[Command]:
def list_commands(self, ctx: Context) -> Iterable[str]:
...