You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yeah literally just commenting out https://github.com/mkdocs/mkdocs-click/blob/master/mkdocs_click/_loader.py#L20 seems to work fine so might be worth just adding the async click as an optional mkdocs dependency here and dealing with it that way....IE attempt to import and if it is not None, then add it to the check if not isinstance(command, [click.BaseCommand, asyncclick.core.Group]) otherwise the iterable will just be if not isinstance(command, [click.BaseCommand] )
A PR would be greatly appreciated! However, my preference would be adding a new command-class option that defaults to click.BaseCommand. The benefit of this approach is that any package becomes compatible.
Activity
jayceslesar commentedon Jan 22, 2025
yeah literally just commenting out https://github.com/mkdocs/mkdocs-click/blob/master/mkdocs_click/_loader.py#L20 seems to work fine so might be worth just adding the async click as an optional mkdocs dependency here and dealing with it that way....IE attempt to import and if it is not None, then add it to the check
if not isinstance(command, [click.BaseCommand, asyncclick.core.Group])otherwise the iterable will just beif not isinstance(command, [click.BaseCommand] )ofek commentedon Jan 22, 2025
A PR would be greatly appreciated! However, my preference would be adding a new
command-classoption that defaults toclick.BaseCommand. The benefit of this approach is that any package becomes compatible.