spdl.source.IterableWithShuffle¶ class IterableWithShuffle[source]¶ Bases: Protocol[T] A protocol that is often used to represent data source. Methods shuffle(seed) Apply in-place shuffling __iter__() → Iterator[T][source]¶ Iterate over the source and yields the source data. shuffle(seed: int) → None[source]¶ Apply in-place shuffling