Skip to content

Commit

Permalink
Apparently iter doesn't need to raise stopasynciteration
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Feb 1, 2024
1 parent 420f954 commit 3e9c27d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions novus/api/api_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ async def __aiter__(self) -> AsyncGenerator[T, Any]:
if len(items) != limit:
break

# And done
raise StopAsyncIteration

async def flatten(self) -> list[T]:
"""
Flatten the entire item from its original API generator into a list.
Expand Down

0 comments on commit 3e9c27d

Please sign in to comment.