Skip to content

Commit 27df09a

Browse files
authored
Correct 'get_command' argument type error
Closes: #101
1 parent d7ff221 commit 27df09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_click/ext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def _format_epilog(ctx: click.Context) -> ty.Generator[str, None, None]:
249249
def _get_lazyload_commands(ctx: click.Context) -> ty.Dict[str, click.Command]:
250250
commands = {}
251251
for command in ctx.command.list_commands(ctx):
252-
commands[command] = ctx.command.get_command(ctx.command, command)
252+
commands[command] = ctx.command.get_command(ctx, command)
253253

254254
return commands
255255

0 commit comments

Comments
 (0)