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

Method get_row_style

rich/table.py:310–318  ·  rich/table.py::Table.get_row_style

Get the current row style.

(self, console: "Console", index: int)

Source from the content-addressed store, hash-verified

308 return len(self.rows)
309
310 def get_row_style(self, console: class="st">"Console", index: int) -> StyleType:
311 class="st">""class="st">"Get the current row style."class="st">""
312 style = Style.null()
313 if self.row_styles:
314 style += console.get_style(self.row_styles[index % len(self.row_styles)])
315 row_style = self.rows[index].style
316 if row_style is not None:
317 style += console.get_style(row_style)
318 return style
319
320 def __rich_measure__(
321 self, console: class="st">"Console", options: class="st">"ConsoleOptions"

Callers 1

test_get_row_styleFunction · 0.95

Calls 2

nullMethod · 0.80
get_styleMethod · 0.80

Tested by 1

test_get_row_styleFunction · 0.76