Skip to content

Commit

Permalink
fix: get_command argument type error
Browse files Browse the repository at this point in the history
A previous fix partially resolve an issue with incorrect command type passed to
list_commands, but the same fix should have been applied to get_command as
well.

Close click-contrib#70 (again).
  • Loading branch information
regisb committed Apr 14, 2022
1 parent d7ff221 commit 314a18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_click/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _format_epilog(ctx: click.Context) -> ty.Generator[str, None, None]:
def _get_lazyload_commands(ctx: click.Context) -> ty.Dict[str, click.Command]:
commands = {}
for command in ctx.command.list_commands(ctx):
commands[command] = ctx.command.get_command(ctx.command, command)
commands[command] = ctx.command.get_command(ctx, command)

return commands

Expand Down

0 comments on commit 314a18e

Please sign in to comment.