mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
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:
committed by
Jelle Zijlstra
parent
066d8becf9
commit
047040887b
2
third_party/2and3/click/core.pyi
vendored
2
third_party/2and3/click/core.pyi
vendored
@@ -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]:
|
||||
...
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user