mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-27 17:23:19 +00:00
feat: Add return type annotation to ProceduralDataset.__next__()
This commit is contained in:
parent
3a8a613573
commit
a20a9e9650
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class ProceduralDataset(ABC, Sized, Iterable[Dict[str, Any]]):
|
||||||
self._current_idx = 0
|
self._current_idx = 0
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __next__(self):
|
def __next__(self) -> Dict[str, Any]:
|
||||||
"""Get next item in iteration"""
|
"""Get next item in iteration"""
|
||||||
if self._current_idx >= self.size:
|
if self._current_idx >= self.size:
|
||||||
raise StopIteration
|
raise StopIteration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue