From b49004f72dfb21013390d1096c1a9bdbeeaf96cc Mon Sep 17 00:00:00 2001 From: Sangheon Lee Date: Sun, 12 Oct 2025 16:15:18 +0900 Subject: [PATCH] Accept click.command objects as command isinstance check of click.Group did not allow click.Command objects --- pyodide_cli/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyodide_cli/app.py b/pyodide_cli/app.py index b01ba14..21ae2c7 100644 --- a/pyodide_cli/app.py +++ b/pyodide_cli/app.py @@ -170,7 +170,7 @@ def register_plugins(): getattr(module, "__doc__", ""), origin_text ) - if isinstance(module, click.Group): + if isinstance(module, click.Command): cmd = module elif isinstance(module, typer.Typer): cmd = typer.main.get_command(module)