mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
fix: Move imports to the top of the file
feat: Implement ConfirmGroup preference handling in confirm_ask
This commit is contained in:
parent
c0871449ac
commit
6aae2bc794
1 changed files with 5 additions and 7 deletions
12
aider/io.py
12
aider/io.py
|
@ -18,13 +18,6 @@ from pygments.lexers import MarkdownLexer, guess_lexer_for_filename
|
|||
from pygments.token import Token
|
||||
from pygments.util import ClassNotFound
|
||||
from rich.console import Console
|
||||
|
||||
|
||||
@dataclass
|
||||
class ConfirmGroup:
|
||||
preference: str = None
|
||||
|
||||
|
||||
from rich.style import Style as RichStyle
|
||||
from rich.text import Text
|
||||
|
||||
|
@ -32,6 +25,11 @@ from .dump import dump # noqa: F401
|
|||
from .utils import is_image_file
|
||||
|
||||
|
||||
@dataclass
|
||||
class ConfirmGroup:
|
||||
preference: str = None
|
||||
|
||||
|
||||
class AutoCompleter(Completer):
|
||||
def __init__(
|
||||
self, root, rel_fnames, addable_rel_fnames, commands, encoding, abs_read_only_fnames=None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue