From ac4e4959eb058a0282c5618ea96a9cd0853a8ad0 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 17 Mar 2025 21:10:17 -0700 Subject: [PATCH] style: Format code according to linter rules --- aider/mdstream.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/aider/mdstream.py b/aider/mdstream.py index 2d593d610..3170c635e 100755 --- a/aider/mdstream.py +++ b/aider/mdstream.py @@ -5,7 +5,7 @@ import time from rich.console import Console from rich.live import Live -from rich.markdown import Markdown, CodeBlock +from rich.markdown import CodeBlock, Markdown from rich.syntax import Syntax from rich.text import Text @@ -49,18 +49,16 @@ The end. class NoInsetCodeBlock(CodeBlock): """A code block with syntax highlighting and no padding.""" - + def __rich_console__(self, console, options): code = str(self.text).rstrip() - syntax = Syntax( - code, self.lexer_name, theme=self.theme, word_wrap=True, padding=0 - ) + syntax = Syntax(code, self.lexer_name, theme=self.theme, word_wrap=True, padding=0) yield syntax class NoInsetMarkdown(Markdown): """Markdown with code blocks that have no padding.""" - + @classmethod def make_elements(cls): elements = super().make_elements()