style: apply code formatting

This commit is contained in:
Paul Gauthier (aider) 2025-05-10 07:10:19 -07:00
parent 8c755bf032
commit 7d3c817664

View file

@ -13,8 +13,8 @@ Use it like:
spinner.stop() spinner.stop()
""" """
import threading
import sys import sys
import threading
import time import time
from rich.console import Console from rich.console import Console
@ -167,6 +167,7 @@ class Spinner:
self.console.show_cursor(True) self.console.show_cursor(True)
self.visible = False self.visible = False
class WaitingSpinner: class WaitingSpinner:
"""Background spinner that can be started/stopped safely.""" """Background spinner that can be started/stopped safely."""
@ -202,6 +203,7 @@ class WaitingSpinner:
def __exit__(self, exc_type, exc_val, exc_tb): def __exit__(self, exc_type, exc_val, exc_tb):
self.stop() self.stop()
def main(): def main():
spinner = Spinner("Running spinner...") spinner = Spinner("Running spinner...")
try: try: