Skip to content

Commit

Permalink
Fix TypeError: 'FragmentsInfoIterator' object is not iterable (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis authored Dec 10, 2024
1 parent cc0a5f3 commit f72e528
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tiledb/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def __init__(self, fragments):
self._fragments = fragments
self._index = 0

def __iter__(self):
return self

def __next__(self):
if self._index < len(self._fragments):
fi = FragmentInfo(self._fragments, self._index)
Expand Down

0 comments on commit f72e528

Please sign in to comment.