feat: Add return type annotation to ProceduralDataset.__next__()

This commit is contained in:
Andreas Koepf (aider) 2025-01-24 10:16:27 +01:00
parent 2a6a9655d7
commit 719d760eea

View file

@ -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