INNER CODE UNIT · Python

add_column

wiltodelta/remove-ai-watermarks · src/remove_ai_watermarks/cli.py:62

    def add_column(self, header: str = "", *args: Any, **kwargs: Any) -> None:
        self._headers.append(str(header))

    def add_row(self, *cells: Any) -> None:
        self._rows.append([str(c) for c in cells])

    def render(self) -> str:
        lines: list[str] = []
        if self._title:
            lines.append(self._title)
        if any(self._headers):
            lines.append("  ".join(self._headers))
        lines.extend("  ".join(row) for row in self._rows)
        return "\n".join(f"  {line}" for line in lines)


class _Console:
    """Minimal plain-text replacement for rich.Console."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…