mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
feat: Add return type annotation to ProceduralDataset.__next__()
This commit is contained in:
parent
2a6a9655d7
commit
719d760eea
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
|
||||
return self
|
||||
|
||||
def __next__(self):
|
||||
def __next__(self) -> Dict[str, Any]:
|
||||
"""Get next item in iteration"""
|
||||
if self._current_idx >= self.size:
|
||||
raise StopIteration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue