def next(self):
        if self.is_hidden:
            return next(self.iter)
        try:
            rv = next(self.iter)
            self.current_item = rv
        except __HOLE__:
            self.finish()
            self.render_progress()
            raise StopIteration()
        else:
            self.update(1)
            return rv
dataset/ETHPy150Open pallets/click/click/_termui_impl.py/ProgressBar.next