bottom_bar remove _items, add remove_item and clear functions

This commit is contained in:
2025-04-24 19:08:37 -04:00
parent 6c72e22415
commit 18163edab9
4 changed files with 24 additions and 6 deletions

View File

@ -19,6 +19,8 @@ class ResultReporter:
return "ResultReporter"
async def report(self, context: ExecutionContext):
if not callable(self.formatter):
raise TypeError("formatter must be callable")
if context.result is not None:
result_text = self.formatter(context.result)
duration = f"{context.duration:.3f}s" if context.duration is not None else "n/a"