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

Method update

rich/progress_bar.py:116–124  ·  view source on GitHub ↗

Update progress with new values. Args: completed (float): Number of steps completed. total (float, optional): Total number of steps, or ``None`` to not change. Defaults to None.

(self, completed: float, total: Optional[float] = None)

Source from the content-addressed store, hash-verified

114 return segments
115
116 def update(self, completed: float, total: Optional[float] = None) -> None:
117 """Update progress with new values.
118
119 Args:
120 completed (float): Number of steps completed.
121 total (float, optional): Total number of steps, or ``None`` to not change. Defaults to None.
122 """
123 self.completed = completed
124 self.total = total if total is not None else self.total
125
126 def _render_pulse(
127 self, console: Console, width: int, ascii: bool = False

Callers 3

test_updateFunction · 0.95
test_renderFunction · 0.95
progress_bar.pyFile · 0.45

Calls

no outgoing calls

Tested by 2

test_updateFunction · 0.76
test_renderFunction · 0.76