Method: rich.progress.BarColumn.render
Calls: 29, Exceptions: 0, Paths: 1Back
Path 1: 29 calls (1.0)
Task (29)
ProgressBar (29)
1def render(self, task: "Task") -> ProgressBar:
2 """Gets a progress bar widget for a task."""
3 return ProgressBar(
4 total=max(0, task.total) if task.total is not None else None,
5 completed=max(0, task.completed),
6 width=None if self.bar_width is None else max(1, self.bar_width),
7 pulse=not task.started,
8 animation_time=task.get_time(),
9 style=self.style,
10 complete_style=self.complete_style,
11 finished_style=self.finished_style,
12 pulse_style=self.pulse_style,
13 )