diff --git a/mkdocs_click/_docs.py b/mkdocs_click/_docs.py index 1c64a9d..0d45800 100644 --- a/mkdocs_click/_docs.py +++ b/mkdocs_click/_docs.py @@ -41,9 +41,9 @@ def _recursively_make_command_docs( subcommands = _get_sub_commands(ctx.command, ctx) - for command in sorted(subcommands, key=lambda cmd: cmd.name): + for command in sorted(subcommands, key=lambda cmd: cmd.name): # type: ignore yield from _recursively_make_command_docs( - command.name, command, parent=ctx, depth=depth + 1, style=style, has_attr_list=has_attr_list + cast(str, command.name), command, parent=ctx, depth=depth + 1, style=style, has_attr_list=has_attr_list ) diff --git a/setup.py b/setup.py index d9d7bf9..beafd15 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def get_long_description() -> str: author_email="packages@datadoghq.com", license="Apache", packages=["mkdocs_click"], - install_requires=["click==7.*", "markdown==3.*"], + install_requires=["click>=7,<9", "markdown==3.*"], python_requires=">=3.7", include_package_data=True, zip_safe=False,