Skip to content

Commit

Permalink
Replace render_group usage
Browse files Browse the repository at this point in the history
This has been dropped in rich 11.0.0.
  • Loading branch information
rabi committed Jan 10, 2022
1 parent 12a175d commit abecf8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ install_requires =
enrich>=1.2.6
packaging
pyyaml
rich>=9.5.1
rich>=10.7.0
ruamel.yaml >= 0.15.34,<1; python_version < "3.7"
ruamel.yaml >= 0.15.37,<1; python_version >= "3.7"
# NOTE: per issue #509 0.15.34 included in debian backports
Expand Down
4 changes: 2 additions & 2 deletions src/ansiblelint/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Iterable

from rich import box
from rich.console import render_group
from rich.console import group
from rich.markdown import Markdown
from rich.table import Table

Expand Down Expand Up @@ -47,7 +47,7 @@ def rules_as_rst(rules: RulesCollection) -> str:
return r


@render_group()
@group()
def rules_as_rich(rules: RulesCollection) -> Iterable[Table]:
"""Print documentation for a list of rules, returns empty string."""
width = max(16, *[len(rule.id) for rule in rules])
Expand Down

0 comments on commit abecf8c

Please sign in to comment.