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)
| 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 |
no outgoing calls