From 27df09a00476431af7032ee4d2bffd1391b745e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Tue, 19 Apr 2022 13:27:52 +0200 Subject: [PATCH] Correct 'get_command' argument type error Closes: #101 --- sphinx_click/ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_click/ext.py b/sphinx_click/ext.py index 6302f78..b516f05 100644 --- a/sphinx_click/ext.py +++ b/sphinx_click/ext.py @@ -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