Skip to content

Commit

Permalink
fixup! Refactor RichProgressBar to support async iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 13, 2024
1 parent db54fa1 commit a3d98a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plextraktsync/rich/RichProgressBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def __iter__(self):

return self

def __aiter__(self):
return self

def __next__(self):
res = self.iterable_next()
self.update()
return res

def __aiter__(self):
return self

async def __anext__(self):
try:
if self.iterable_awaitable:
Expand Down

0 comments on commit a3d98a8

Please sign in to comment.