From 57f1b3139a4d4f1333e82bd29c322eb0a3676ad7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 12 May 2023 13:12:50 -0700 Subject: [PATCH] wip: Removed unused import and changed Text object to string. --- aider/coder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aider/coder.py b/aider/coder.py index 7375b3bd3..928d693dc 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -8,7 +8,6 @@ from openai.error import RateLimitError from rich.console import Console from rich.live import Live -from rich.text import Text from rich.markdown import Markdown from pathlib import Path @@ -260,7 +259,7 @@ class Coder: except ValueError as err: err = err.args[0] self.io.tool_error("Malformed ORIGINAL/UPDATE blocks, retrying...") - self.io.tool_error(Text(err)) + self.io.tool_error(err) return err except Exception as err: @@ -495,7 +494,7 @@ class Coder: raise ValueError(f"Invalid value for 'which': {which}") if self.show_diffs or ask: - self.console.print(Text(diffs)) + self.console.print(diffs) context = self.get_context_from_history(history) if message: