summaryrefslogtreecommitdiffstats
path: root/tqdm/rich.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 15:59:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 15:59:52 +0000
commita2eb45dc71bcd8ec656e4357e66e674e2c3fa17e (patch)
tree6874a3d60e42c8c0fd8bf7b201806e1a2ca32c24 /tqdm/rich.py
parentAdding upstream version 4.66.2. (diff)
downloadtqdm-upstream.tar.xz
tqdm-upstream.zip
Adding upstream version 4.66.4.upstream/4.66.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tqdm/rich.py')
-rw-r--r--tqdm/rich.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tqdm/rich.py b/tqdm/rich.py
index 00e1ddf..3d392ed 100644
--- a/tqdm/rich.py
+++ b/tqdm/rich.py
@@ -90,7 +90,7 @@ class tqdm_rich(std_tqdm): # pragma: no cover
kwargs['disable'] = bool(kwargs.get('disable', False))
progress = kwargs.pop('progress', None)
options = kwargs.pop('options', {}).copy()
- super(tqdm_rich, self).__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
if self.disable:
return
@@ -116,7 +116,8 @@ class tqdm_rich(std_tqdm): # pragma: no cover
def close(self):
if self.disable:
return
- super(tqdm_rich, self).close()
+ self.display() # print 100%, vis #1306
+ super().close()
self._prog.__exit__(None, None, None)
def clear(self, *_, **__):
@@ -137,7 +138,7 @@ class tqdm_rich(std_tqdm): # pragma: no cover
"""
if hasattr(self, '_prog'):
self._prog.reset(total=total)
- super(tqdm_rich, self).reset(total=total)
+ super().reset(total=total)
def trrange(*args, **kwargs):