Fix rich Table.grid call

This commit is contained in:
Codex Agent
2025-11-27 12:58:29 +01:00
parent 23d60f3f21
commit 4a872a9c1c
2 changed files with 5 additions and 4 deletions

View File

@@ -9,8 +9,7 @@ authors = [
dependencies = []
[project.optional-dependencies]
dev = ["pytest>=7.0"]
dashboard = ["rich>=13.7.0"]
dev = ["pytest>=7.0", "rich>=13.7.0"]
[build-system]
requires = ["setuptools>=61"]

View File

@@ -21,7 +21,10 @@ LOGGER = logging.getLogger(__name__)
def _table(title: str) -> Table:
return Table.grid(expand=True, padding=(0, 1), title=title, title_style="bold cyan")
tbl = Table.grid(expand=True, padding=(0, 1))
tbl.title = title
tbl.title_style = "bold cyan"
return tbl
class RichDashboard:
@@ -128,4 +131,3 @@ class RichDashboard:
finally:
if self.save_path and self.sim and self.sim.last_state:
self.reactor.save_state(self.save_path, self.sim.last_state)