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

Method get_bottom

rich/box.py:164–182  ·  view source on GitHub ↗

Get the bottom of a simple box. Args: widths (List[int]): Widths of columns. Returns: str: A string of box characters.

(self, widths: Iterable[int])

Source from the content-addressed store, hash-verified

162 return "".join(parts)
163
164 def get_bottom(self, widths: Iterable[int]) -> str:
165 """Get the bottom of a simple box.
166
167 Args:
168 widths (List[int]): Widths of columns.
169
170 Returns:
171 str: A string of box characters.
172 """
173
174 parts: List[str] = []
175 append = parts.append
176 append(self.bottom_left)
177 for last, width in loop_last(widths):
178 append(self.bottom * width)
179 if not last:
180 append(self.bottom_divider)
181 append(self.bottom_right)
182 return "".join(parts)
183
184
185# fmt: off

Callers 3

test_get_bottomFunction · 0.80
__rich_console__Method · 0.80
_renderMethod · 0.80

Calls 2

loop_lastFunction · 0.85
joinMethod · 0.80

Tested by 1

test_get_bottomFunction · 0.64