Skip to content

Commit

Permalink
Ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wsfulton committed Nov 20, 2024
1 parent 85d4799 commit 7a38c10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions abi3audit/_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,24 @@

from rich.console import Console


class Status(object):
def __init__(self, console: Console):
self._console = console
self._status = None

def __enter__(self):
if self._status:
self._status.__enter__()
return self

def __exit__(self, *args):
if self._status:
self._status.__exit__(*args)

def initiate(self):
self._status = self._console.status("[green]Processing inputs", spinner="clock")

def update(self, s: str):
if self._status:
self._status.update(s)
Expand Down

0 comments on commit 7a38c10

Please sign in to comment.