Skip to content

Commit

Permalink
Add display to close in rich module
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 11, 2023
1 parent 4c956c2 commit fe68772
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tqdm/rich.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ def __init__(self, *args, **kwargs):
def close(self):
if self.disable:
return

# Add call display to print 100%
# https://github.com/tqdm/tqdm/issues/1306#issuecomment-1322762835
self.display()

super(tqdm_rich, self).close()
self._prog.__exit__(None, None, None)

Expand Down

0 comments on commit fe68772

Please sign in to comment.