fix: Move imports to the top of the file

feat: Implement ConfirmGroup preference handling in confirm_ask
This commit is contained in:
Paul Gauthier (aider) 2024-08-23 16:19:05 -07:00
parent c0871449ac
commit 6aae2bc794

View file

@ -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