@@ -120,7 +120,7 @@ def __init__(
120
120
):
121
121
pointwise = getattr (mobject , "pointwise_become_partial" , None )
122
122
if not callable (pointwise ):
123
- raise NotImplementedError ( "This animation is not defined for this Mobject ." )
123
+ raise TypeError ( f" { self . __class__ . __name__ } only works for VMobjects ." )
124
124
super ().__init__ (mobject , ** kwargs )
125
125
126
126
def interpolate_submobject (
@@ -133,7 +133,7 @@ def interpolate_submobject(
133
133
starting_submobject , * self ._get_bounds (alpha )
134
134
)
135
135
136
- def _get_bounds (self , alpha : float ) -> None :
136
+ def _get_bounds (self , alpha : float ) -> tuple [ float , float ] :
137
137
raise NotImplementedError ("Please use Create or ShowPassingFlash" )
138
138
139
139
@@ -173,7 +173,7 @@ def __init__(
173
173
) -> None :
174
174
super ().__init__ (mobject , lag_ratio = lag_ratio , introducer = introducer , ** kwargs )
175
175
176
- def _get_bounds (self , alpha : float ) -> tuple [int , float ]:
176
+ def _get_bounds (self , alpha : float ) -> tuple [float , float ]:
177
177
return (0 , alpha )
178
178
179
179
@@ -229,8 +229,6 @@ def __init__(
229
229
rate_func : Callable [[float ], float ] = double_smooth ,
230
230
stroke_width : float = 2 ,
231
231
stroke_color : str = None ,
232
- draw_border_animation_config : dict = {}, # what does this dict accept?
233
- fill_animation_config : dict = {},
234
232
introducer : bool = True ,
235
233
** kwargs ,
236
234
) -> None :
@@ -244,8 +242,6 @@ def __init__(
244
242
)
245
243
self .stroke_width = stroke_width
246
244
self .stroke_color = stroke_color
247
- self .draw_border_animation_config = draw_border_animation_config
248
- self .fill_animation_config = fill_animation_config
249
245
self .outline = self .get_outline ()
250
246
251
247
def _typecheck_input (self , vmobject : VMobject | OpenGLVMobject ) -> None :
0 commit comments