feat: Add optional text param to Spinner.step

This commit is contained in:
Paul Gauthier (aider) 2025-05-09 06:50:42 -07:00
parent 04cbe87caa
commit 2bc9386876

View file

@ -332,7 +332,10 @@ class Spinner:
Spinner.last_frame_idx = self.frame_idx # Update class variable
return frame
def step(self) -> None:
def step(self, text: str = None) -> None:
if text is not None:
self.text = text
if not self.is_tty:
return