MCPcopy
hub / github.com/Textualize/rich / summary

Method summary

rich/layout.py:229–239  ·  view source on GitHub ↗
(layout: "Layout")

Source from the content-addressed store, hash-verified

227 from rich.tree import Tree
228
229 def summary(layout: "Layout") -> Table:
230 icon = layout.splitter.get_tree_icon()
231
232 table = Table.grid(padding=(0, 1, 0, 0))
233
234 text: RenderableType = (
235 Pretty(layout) if layout.visible else Styled(Pretty(layout), "dim")
236 )
237 table.add_row(icon, text)
238 _summary = table
239 return _summary
240
241 layout = self
242 tree = Tree(

Callers

nothing calls this directly

Calls 5

StyledClass · 0.90
PrettyClass · 0.85
gridMethod · 0.80
add_rowMethod · 0.80
get_tree_iconMethod · 0.45

Tested by

no test coverage detected