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])
| 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 |