Skip to content

Commit 8733b80

Browse files
Sequence to Iterable
Co-authored-by: Victorien <[email protected]>
1 parent a82de37 commit 8733b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manim/utils/iterables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def all_elements_are_instances(iterable: Iterable[object], Class: type[object])
8787

8888

8989
def batch_by_property(
90-
items: Sequence[T], property_func: Callable[[T], U]
90+
items: Iterable[T], property_func: Callable[[T], U]
9191
) -> list[tuple[list[T], U]]:
9292
"""Takes in a Sequence, and returns a list of tuples, (batch, prop)
9393
such that all items in a batch have the same output when

0 commit comments

Comments
 (0)