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

Method render

rich/progress.py:756–769  ·  view source on GitHub ↗
(self, task: "Task")

Source from the content-addressed store, hash-verified

754 return Text(f"{data_speed:.1f}{suffix} it/s", style="progress.percentage")
755
756 def render(self, task: "Task") -> Text:
757 if task.total is None and self.show_speed:
758 return self.render_speed(task.finished_speed or task.speed)
759 text_format = (
760 self.text_format_no_percentage if task.total is None else self.text_format
761 )
762 _text = text_format.format(task=task)
763 if self.markup:
764 text = Text.from_markup(_text, style=self.style, justify=self.justify)
765 else:
766 text = Text(_text, style=self.style, justify=self.justify)
767 if self.highlighter:
768 self.highlighter.highlight(text)
769 return text
770
771
772class TimeRemainingColumn(ProgressColumn):

Callers

nothing calls this directly

Calls 4

render_speedMethod · 0.95
TextClass · 0.85
from_markupMethod · 0.80
highlightMethod · 0.45

Tested by

no test coverage detected