(self, n=1)
| 256 | # since this could be a shared bar which the user will `reset()` |
| 257 | |
| 258 | def update(self, n=1): |
| 259 | try: |
| 260 | return super().update(n=n) |
| 261 | # NB: except ... [ as ...] breaks IPython async KeyboardInterrupt |
| 262 | except: # NOQA |
| 263 | # cannot catch KeyboardInterrupt when using manual tqdm |
| 264 | # as the interrupt will most likely happen on another statement |
| 265 | self.disp(bar_style='danger') |
| 266 | raise |
| 267 | # NB: don't `finally: close()` |
| 268 | # since this could be a shared bar which the user will `reset()` |
| 269 | |
| 270 | def close(self): |
| 271 | if self.disable: |
nothing calls this directly
no outgoing calls
no test coverage detected