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

Method __init__

rich/progress.py:619–633  ·  view source on GitHub ↗
(
        self,
        text_format: str,
        style: StyleType = "none",
        justify: JustifyMethod = "left",
        markup: bool = True,
        highlighter: Optional[Highlighter] = None,
        table_column: Optional[Column] = None,
    )

Source from the content-addressed store, hash-verified

617 """A column containing text."""
618
619 def __init__(
620 self,
621 text_format: str,
622 style: StyleType = "none",
623 justify: JustifyMethod = "left",
624 markup: bool = True,
625 highlighter: Optional[Highlighter] = None,
626 table_column: Optional[Column] = None,
627 ) -> None:
628 self.text_format = text_format
629 self.justify: JustifyMethod = justify
630 self.style = style
631 self.markup = markup
632 self.highlighter = highlighter
633 super().__init__(table_column=table_column or Column(no_wrap=True))
634
635 def render(self, task: "Task") -> Text:
636 _text = self.text_format.format(task=task)

Callers

nothing calls this directly

Calls 2

ColumnClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected