style: Remove trailing whitespaces in base_coder.py and io.py

This commit is contained in:
Paul Gauthier (aider) 2025-03-06 11:41:58 -08:00
parent 3c0eae4180
commit 813de04596
2 changed files with 7 additions and 7 deletions

View file

@ -1279,7 +1279,7 @@ class Coder:
def send_message(self, inp): def send_message(self, inp):
self.event("message_send_starting") self.event("message_send_starting")
# Notify IO that LLM processing is starting # Notify IO that LLM processing is starting
self.io.llm_started() self.io.llm_started()

View file

@ -462,7 +462,7 @@ class InputOutput:
edit_format=None, edit_format=None,
): ):
self.rule() self.rule()
# Ring the bell if needed # Ring the bell if needed
self.ring_bell() self.ring_bell()
@ -717,7 +717,7 @@ class InputOutput:
allow_never=False, allow_never=False,
): ):
self.num_user_asks += 1 self.num_user_asks += 1
# Ring the bell if needed # Ring the bell if needed
self.ring_bell() self.ring_bell()
@ -830,7 +830,7 @@ class InputOutput:
@restore_multiline @restore_multiline
def prompt_ask(self, question, default="", subject=None): def prompt_ask(self, question, default="", subject=None):
self.num_user_asks += 1 self.num_user_asks += 1
# Ring the bell if needed # Ring the bell if needed
self.ring_bell() self.ring_bell()
@ -944,17 +944,17 @@ class InputOutput:
def llm_started(self): def llm_started(self):
"""Mark that the LLM has started processing, so we should ring the bell on next input""" """Mark that the LLM has started processing, so we should ring the bell on next input"""
self.bell_on_next_input = True self.bell_on_next_input = True
def llm_finished(self): def llm_finished(self):
"""Clear the bell flag (optional, as we'll clear it after ringing)""" """Clear the bell flag (optional, as we'll clear it after ringing)"""
self.bell_on_next_input = False self.bell_on_next_input = False
def ring_bell(self): def ring_bell(self):
"""Ring the terminal bell if needed and clear the flag""" """Ring the terminal bell if needed and clear the flag"""
if self.bell_on_next_input: if self.bell_on_next_input:
print("\a", end="", flush=True) # Ring the bell print("\a", end="", flush=True) # Ring the bell
self.bell_on_next_input = False # Clear the flag self.bell_on_next_input = False # Clear the flag
def toggle_multiline_mode(self): def toggle_multiline_mode(self):
"""Toggle between normal and multiline input modes""" """Toggle between normal and multiline input modes"""
self.multiline_mode = not self.multiline_mode self.multiline_mode = not self.multiline_mode