Path 1: 5 calls (1.0)

Layout (5)

Table (5)

1def summary(layout: "Layout") -> Table:
2
3            icon = layout.splitter.get_tree_icon()
4
5            table = Table.grid(padding=(0, 1, 0, 0))
6
7            text: RenderableType = (
8                Pretty(layout) if layout.visible else Styled(Pretty(layout), "dim")
9            )
10            table.add_row(icon, text)
11            _summary = table
12            return _summary