Skip to content

Commit abecf8c

Browse files
committed
Replace render_group usage
This has been dropped in rich 11.0.0.
1 parent 12a175d commit abecf8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ install_requires =
7171
enrich>=1.2.6
7272
packaging
7373
pyyaml
74-
rich>=9.5.1
74+
rich>=10.7.0
7575
ruamel.yaml >= 0.15.34,<1; python_version < "3.7"
7676
ruamel.yaml >= 0.15.37,<1; python_version >= "3.7"
7777
# NOTE: per issue #509 0.15.34 included in debian backports

src/ansiblelint/generate_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Iterable
44

55
from rich import box
6-
from rich.console import render_group
6+
from rich.console import group
77
from rich.markdown import Markdown
88
from rich.table import Table
99

@@ -47,7 +47,7 @@ def rules_as_rst(rules: RulesCollection) -> str:
4747
return r
4848

4949

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

0 commit comments

Comments
 (0)