summaryrefslogtreecommitdiffstats
path: root/README.rst
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 /README.rst
parentAdding upstream version 4.66.2. (diff)
downloadtqdm-a2eb45dc71bcd8ec656e4357e66e674e2c3fa17e.tar.xz
tqdm-a2eb45dc71bcd8ec656e4357e66e674e2c3fa17e.zip
Adding upstream version 4.66.4.upstream/4.66.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index a148cb1..a2b626d 100644
--- a/README.rst
+++ b/README.rst
@@ -766,7 +766,7 @@ Additional ``bar_format`` parameters may also be defined by overriding
"""Provides a `total_time` format parameter"""
@property
def format_dict(self):
- d = super(TqdmExtraFormat, self).format_dict
+ d = super().format_dict
total_time = d["elapsed"] * (d["total"] or 0) / max(d["n"], 1)
d.update(total_time=self.format_interval(total_time) + " in total")
return d
@@ -982,7 +982,7 @@ custom callback take advantage of this, simply use the return value of
class TqdmExt(std_tqdm):
def update(self, n=1):
- displayed = super(TqdmExt, self).update(n)
+ displayed = super().update(n)
if displayed:
external_callback(**self.format_dict)
return displayed