Method: rich.progress.TaskProgressColumn.render
Calls: 18, Exceptions: 0, Paths: 1Back
Path 1: 18 calls (1.0)
Task (18)
Text (18)
1def render(self, task: "Task") -> Text:
2 if task.total is None and self.show_speed:
3 return self.render_speed(task.finished_speed or task.speed)
4 text_format = (
5 self.text_format_no_percentage if task.total is None else self.text_format
6 )
7 _text = text_format.format(task=task)
8 if self.markup:
9 text = Text.from_markup(_text, style=self.style, justify=self.justify)
10 else:
11 text = Text(_text, style=self.style, justify=self.justify)
12 if self.highlighter:
13 self.highlighter.highlight(text)
14 return text