Skip to content

Commit 1bf4f5f

Browse files
iindykcopybara-github
authored andcommitted
internal.
PiperOrigin-RevId: 886200959
1 parent 5080952 commit 1bf4f5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

grain/_src/python/dataset/dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,7 @@ def __init__(self, parent: IterDataset[T], options: base.DatasetOptions):
17081708
self.options = options
17091709

17101710
def __iter__(self) -> DatasetIterator[T]:
1711+
"""Returns an iterator for the dataset."""
17111712
result = self._parent.__iter__()
17121713
# The parent iterator options are merged from the entire subtree. Merge
17131714
# them with the latest options and update the subtree options.
@@ -1737,7 +1738,7 @@ class _OutputIterDataset(IterDataset[T]):
17371738
"""Dataset that is injected at the end of every pipeline."""
17381739

17391740
def __iter__(self) -> DatasetIterator[T]:
1740-
"""Performs any injection that needs to happen at the end of the pipeline."""
1741+
"""Performs injections that need to happen at the end of the pipeline."""
17411742

17421743
# Loaded lazily due to a circular dependency (dataset <-> prefetch).
17431744
# pylint: disable=g-import-not-at-top

0 commit comments

Comments
 (0)