Skip to content

Commit 88dfe45

Browse files
committed
Keep Black happy
1 parent 4568747 commit 88dfe45

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/textual/widgets/_markdown.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ def __init__(self, markdown: Markdown, code: str, lexer: str) -> None:
503503
self.code = code
504504
self.lexer = lexer
505505
self.theme = (
506-
self._markdown.code_dark_theme if self.app.dark else self._markdown.code_light_theme
506+
self._markdown.code_dark_theme
507+
if self.app.dark
508+
else self._markdown.code_light_theme
507509
)
508510

509511
def _block(self) -> Syntax:
@@ -523,7 +525,9 @@ def _on_mount(self, _: Mount) -> None:
523525
def _retheme(self) -> None:
524526
"""Rerender when the theme changes."""
525527
self.theme = (
526-
self._markdown.code_dark_theme if self.app.dark else self._markdown.code_light_theme
528+
self._markdown.code_dark_theme
529+
if self.app.dark
530+
else self._markdown.code_light_theme
527531
)
528532
code_block = self.query_one(Static)
529533
code_block.update(self._block())

0 commit comments

Comments
 (0)