mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: Remove unused WordCompleter import from aider/io.py
This commit is contained in:
parent
d5f1359cc2
commit
9eac88f734
1 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from prompt_toolkit import prompt
|
from prompt_toolkit import prompt
|
||||||
from prompt_toolkit.completion import Completer, Completion, WordCompleter
|
from prompt_toolkit.completion import Completer, Completion
|
||||||
from prompt_toolkit.enums import EditingMode
|
from prompt_toolkit.enums import EditingMode
|
||||||
from prompt_toolkit.history import FileHistory
|
from prompt_toolkit.history import FileHistory
|
||||||
from prompt_toolkit.key_binding import KeyBindings
|
from prompt_toolkit.key_binding import KeyBindings
|
||||||
|
@ -377,8 +377,6 @@ class InputOutput:
|
||||||
else:
|
else:
|
||||||
style = dict()
|
style = dict()
|
||||||
|
|
||||||
completer = WordCompleter(["yes", "no"])
|
|
||||||
|
|
||||||
def is_yesno(text):
|
def is_yesno(text):
|
||||||
return "yes".startswith(text.lower()) or "no".startswith(text.lower())
|
return "yes".startswith(text.lower()) or "no".startswith(text.lower())
|
||||||
|
|
||||||
|
@ -394,7 +392,9 @@ class InputOutput:
|
||||||
res = "n"
|
res = "n"
|
||||||
else:
|
else:
|
||||||
res = prompt(
|
res = prompt(
|
||||||
question, style=Style.from_dict(style), completer=completer, validator=validator
|
question,
|
||||||
|
style=Style.from_dict(style),
|
||||||
|
validator=validator,
|
||||||
)
|
)
|
||||||
if not res and default:
|
if not res and default:
|
||||||
res = default
|
res = default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue