mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
style: apply code formatting
This commit is contained in:
parent
8c755bf032
commit
7d3c817664
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue