MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / set_description

Method set_description

pager_lib/tqdm/std.py:1382–1394  ·  view source on GitHub ↗

Set/modify description of the progress bar. Parameters ---------- desc : str, optional refresh : bool, optional Forces refresh [default: True].

(self, desc=None, refresh=True)

Source from the content-addressed store, hash-verified

1380 self.refresh()
1381
1382 def set_description(self, desc=None, refresh=True):
1383 """
1384 Set/modify description of the progress bar.
1385
1386 Parameters
1387 ----------
1388 desc : str, optional
1389 refresh : bool, optional
1390 Forces refresh [default: True].
1391 """
1392 self.desc = desc + ': ' if desc else ''
1393 if refresh:
1394 self.refresh()
1395
1396 def set_description_str(self, desc=None, refresh=True):
1397 """Set/modify description without ': ' appended."""

Callers

nothing calls this directly

Calls 1

refreshMethod · 0.95

Tested by

no test coverage detected