Skip to content

Commit 03b38e7

Browse files
committed
missed bounds check for updated iteration behavior
1 parent a965255 commit 03b38e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp_api/client/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,6 @@ def __len__(self) -> int:
191191

192192
def __iter__(self):
193193
current = self._start
194-
while current < self.num_chunks:
194+
while current < len(self):
195195
yield self[current]
196196
current += 1

0 commit comments

Comments
 (0)