This commit is contained in:
Will McGugan 2020-11-29 19:01:02 +00:00
parent 05a26fa433
commit 67599f772a
2 changed files with 2 additions and 2 deletions

View file

@ -7,10 +7,8 @@ from dataclasses import dataclass, field
from datetime import timedelta
from math import ceil
from threading import Event, RLock, Thread
from time import monotonic
from typing import (
IO,
TYPE_CHECKING,
Any,
Callable,
Deque,

View file

@ -143,8 +143,10 @@ def make_progress() -> Progress:
def render_progress() -> str:
progress = make_progress()
progress.start() # superfluous noop
with progress:
pass
progress.stop() # superfluous noop
progress_render = progress.console.file.getvalue()
return progress_render