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

Method __iter__

pager_lib/tqdm/notebook.py:247–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 self.display(check_delay=False)
246
247 def __iter__(self):
248 try:
249 it = super().__iter__()
250 yield from it
251 # NB: except ... [ as ...] breaks IPython async KeyboardInterrupt
252 except: # NOQA
253 self.disp(bar_style='danger')
254 raise
255 # NB: don't `finally: close()`
256 # since this could be a shared bar which the user will `reset()`
257
258 def update(self, n=1):
259 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected