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

Method add_section

rich/table.py:469–473  ·  view source on GitHub ↗

Add a new section (draw a line after current row).

(self)

Source from the content-addressed store, hash-verified

467 self.rows.append(Row(style=style, end_section=end_section))
468
469 def add_section(self) -> None:
470 """Add a new section (draw a line after current row)."""
471
472 if self.rows:
473 self.rows[-1].end_section = True
474
475 def __rich_console__(
476 self, console: "Console", options: "ConsoleOptions"

Callers 2

test_sectionFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_sectionFunction · 0.76