From 7a38c10a496ca96a3f0b629a1935a74c75c49b71 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 20 Nov 2024 19:35:10 +0000 Subject: [PATCH] Ruff formatting --- abi3audit/_state.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abi3audit/_state.py b/abi3audit/_state.py index 725ab0d..d0c86bc 100644 --- a/abi3audit/_state.py +++ b/abi3audit/_state.py @@ -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)