Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Mar 2, 2020
1 parent a8736e2 commit 9a98dec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rich/traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def install(
Args:
width (Optional[int], optional): Width (in characters) of traceback. Defaults to 100.
extra_lines (int, optional): Extra lines of code. Defaults to 3.
theme (str, optional) Pygments theme to use in traceback. Defaults to ``None`` which will pick
theme (Optional[str], optional) Pygments theme to use in traceback. Defaults to ``None`` which will pick
a theme appropriate for the platform.
"""
Expand Down
10 changes: 5 additions & 5 deletions tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def test_style_context():
console = Console()

with StyleContext(console, None):
assert console.current_style == Style()
assert console._current_style == Style()

with StyleContext(console, "bold"):
assert console.current_style == Style.parse("bold")
assert console._current_style == Style.parse("bold")
with StyleContext(console, "red"):
assert console.current_style == Style.parse("bold red")
assert console.current_style == Style.parse("bold")
assert console.current_style == Style()
assert console._current_style == Style.parse("bold red")
assert console._current_style == Style.parse("bold")
assert console._current_style == Style()


def test_init():
Expand Down

0 comments on commit 9a98dec

Please sign in to comment.