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

Method reset

pager_lib/tqdm/rich.py:131–141  ·  view source on GitHub ↗

Resets to 0 iterations for repeated use. Parameters ---------- total : int or float, optional. Total to use for the new bar.

(self, total=None)

Source from the content-addressed store, hash-verified

129 self._prog.update(self._task_id, completed=self.n, description=self.desc)
130
131 def reset(self, total=None):
132 """
133 Resets to 0 iterations for repeated use.
134
135 Parameters
136 ----------
137 total : int or float, optional. Total to use for the new bar.
138 """
139 if hasattr(self, '_prog'):
140 self._prog.reset(total=total)
141 super().reset(total=total)
142
143
144def trrange(*args, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected