In 1.7.0dev0, I ended up introducing some bugs in the rich-click CLI tool. The issue was by patching the click module, some things like isinstance(obj, click.MultiCommand) checks don't work.
The trick is instead of doingimport click and using click.MultiCommand, instead do from click import MultiCommand and use MultiCommand. This keeps that object from being patched with the rich-click CLI.
In 1.7.0dev0, I ended up introducing some bugs in the
rich-click
CLI tool. The issue was by patching theclick
module, some things likeisinstance(obj, click.MultiCommand)
checks don't work.The trick is instead of doing
import click
and usingclick.MultiCommand
, instead dofrom click import MultiCommand
and useMultiCommand
. This keeps that object from being patched with therich-click
CLI.