77from typing import Callable
88
99from manim .mobject .opengl .opengl_compatibility import ConvertToOpenGL
10- from manim .mobject .types .vectorized_mobject import VGroup , VMobject
10+ from manim .mobject .types .vectorized_mobject import VGroup , VMobject , VMobjectT
1111from manim .utils .color import (
1212 BLUE_B ,
1313 BLUE_D ,
1919from manim .utils .rate_functions import smooth
2020
2121
22- class AnimatedBoundary (VGroup ):
22+ class AnimatedBoundary (VGroup [ VMobjectT ] ):
2323 """Boundary of a :class:`.VMobject` with animated color change.
2424
2525 Examples
@@ -38,11 +38,11 @@ def construct(self):
3838
3939 def __init__ (
4040 self ,
41- vmobject ,
42- colors = [BLUE_D , BLUE_B , BLUE_E , GREY_BROWN ],
43- max_stroke_width = 3 ,
44- cycle_rate = 0.5 ,
45- back_and_forth = True ,
41+ vmobject : VMobjectT ,
42+ colors : list [ ParsableManimColor ] = [BLUE_D , BLUE_B , BLUE_E , GREY_BROWN ],
43+ max_stroke_width : float = 3 ,
44+ cycle_rate : float = 0.5 ,
45+ back_and_forth : bool = True ,
4646 draw_rate_func = smooth ,
4747 fade_rate_func = smooth ,
4848 ** kwargs ,
@@ -60,7 +60,7 @@ def __init__(
6060 ]
6161 self .add (* self .boundary_copies )
6262 self .total_time = 0
63- self .add_updater (lambda m , dt : self .update_boundary_copies (dt ))
63+ self .add_updater (lambda _ , dt : self .update_boundary_copies (dt ))
6464
6565 def update_boundary_copies (self , dt ):
6666 # Not actual time, but something which passes at
0 commit comments