diff options
Diffstat (limited to 'tqdm/rich.py')
-rw-r--r-- | tqdm/rich.py | 7 |
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): |