mirror of https://github.com/Textualize/rich.git
replace cwwidth
This commit is contained in:
parent
15df025a5a
commit
82a11b9960
|
@ -4,6 +4,7 @@
|
|||
mypy_report
|
||||
docs/build
|
||||
docs/source/_build
|
||||
tools/*.txt
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
|
@ -412,6 +412,15 @@ class Progress:
|
|||
if refresh:
|
||||
self.refresh()
|
||||
|
||||
def advance(self, task_id: TaskID, advance: float = 1) -> None:
|
||||
"""Advance task by a number of steps.
|
||||
|
||||
Args:
|
||||
task_id (TaskID): ID of task.
|
||||
advance (float): Number of steps to advance. Default is 1.
|
||||
"""
|
||||
self.update(task_id, advance=advance)
|
||||
|
||||
def refresh(self) -> None:
|
||||
"""Refresh (render) the progress information."""
|
||||
with self._lock:
|
||||
|
|
Loading…
Reference in New Issue