mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
wip: Removed unused import and changed Text object to string.
This commit is contained in:
parent
919cfc2359
commit
57f1b3139a
1 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue