We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82de37 commit 8733b80Copy full SHA for 8733b80
manim/utils/iterables.py
@@ -87,7 +87,7 @@ def all_elements_are_instances(iterable: Iterable[object], Class: type[object])
87
88
89
def batch_by_property(
90
- items: Sequence[T], property_func: Callable[[T], U]
+ items: Iterable[T], property_func: Callable[[T], U]
91
) -> list[tuple[list[T], U]]:
92
"""Takes in a Sequence, and returns a list of tuples, (batch, prop)
93
such that all items in a batch have the same output when
0 commit comments