|
52 | 52 | from ..utils.iterables import list_difference_update, list_update
|
53 | 53 |
|
54 | 54 | if TYPE_CHECKING:
|
55 |
| - from collections.abc import Iterable, Sequence |
| 55 | + from collections.abc import Sequence |
56 | 56 | from typing import Callable
|
57 | 57 |
|
| 58 | + from manim.mobject.mobject import _AnimationBuilder |
| 59 | + |
58 | 60 |
|
59 | 61 | class RerunSceneHandler(FileSystemEventHandler):
|
60 | 62 | """A class to handle rerunning a Scene after the input file is modified."""
|
@@ -878,7 +880,7 @@ def get_moving_and_static_mobjects(self, animations):
|
878 | 880 |
|
879 | 881 | def compile_animations(
|
880 | 882 | self,
|
881 |
| - *args: Animation | Iterable[Animation] | types.GeneratorType[Animation], |
| 883 | + *args: Animation | Mobject | _AnimationBuilder, |
882 | 884 | **kwargs,
|
883 | 885 | ):
|
884 | 886 | """
|
@@ -1070,7 +1072,7 @@ def get_run_time(self, animations: list[Animation]):
|
1070 | 1072 |
|
1071 | 1073 | def play(
|
1072 | 1074 | self,
|
1073 |
| - *args: Animation | Iterable[Animation] | types.GeneratorType[Animation], |
| 1075 | + *args: Animation | Mobject | _AnimationBuilder, |
1074 | 1076 | subcaption=None,
|
1075 | 1077 | subcaption_duration=None,
|
1076 | 1078 | subcaption_offset=0,
|
@@ -1205,7 +1207,7 @@ def wait_until(self, stop_condition: Callable[[], bool], max_time: float = 60):
|
1205 | 1207 |
|
1206 | 1208 | def compile_animation_data(
|
1207 | 1209 | self,
|
1208 |
| - *animations: Animation | Iterable[Animation] | types.GeneratorType[Animation], |
| 1210 | + *animations: Animation | Mobject | _AnimationBuilder, |
1209 | 1211 | **play_kwargs,
|
1210 | 1212 | ):
|
1211 | 1213 | """Given a list of animations, compile the corresponding
|
|
0 commit comments