Skip to content

Commit

Permalink
rule accepts Text now
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 18, 2020
1 parent 90b9bbc commit 0aee98f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rich/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ def check_text() -> None:

def rule(
self,
title: str = "",
title: TextType = "",
*,
characters: str = "─",
style: Union[str, Style] = "rule.line",
Expand Down
2 changes: 1 addition & 1 deletion rich/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def _render(
table.add_row("Dec 15, 2017", "Star Wars Ep. V111: The Last Jedi", "$1,332,539,889")
table.add_row("Dec 16, 2016", "Rogue One: A Star Wars Story", "$1,332,439,889")

def header(text) -> None:
def header(text:str) -> None:
console.print()
console.rule(highlight(text))
console.print()
Expand Down

0 comments on commit 0aee98f

Please sign in to comment.