Skip to content

Commit 3acd57a

Browse files
committed
Remove **kwargs in Animation and add use_override to __init__
1 parent 57e6f3d commit 3acd57a

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

manim/animation/animation.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(
141141
introducer: bool = False,
142142
*,
143143
_on_finish: Callable[[], None] = lambda _: None,
144-
**kwargs,
144+
use_override: bool = True, # included here to avoid TypeError if passed from a subclass's constructor
145145
) -> None:
146146
self._typecheck_input(mobject)
147147
self.run_time: float = run_time
@@ -161,8 +161,6 @@ def __init__(
161161
else:
162162
self.starting_mobject: Mobject = Mobject()
163163
self.mobject: Mobject = mobject if mobject is not None else Mobject()
164-
if kwargs:
165-
logger.debug("Animation received extra kwargs: %s", kwargs)
166164

167165
if hasattr(self, "CONFIG"):
168166
logger.error(

manim/animation/transform_matching_parts.py

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def __init__(
9696
# target_map
9797
transform_source = group_type()
9898
transform_target = group_type()
99-
kwargs["final_alpha_value"] = 0
10099
for key in set(source_map).intersection(target_map):
101100
transform_source.add(source_map[key])
102101
transform_target.add(target_map[key])

manim/mobject/mobject.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ def dot_position(mobject):
10111011
label.add_updater(dot_position)
10121012
self.add(dot, label)
10131013
1014-
self.play(Rotating(dot, about_point=ORIGIN, angle=TAU, run_time=TAU, rate_func=linear))
1014+
self.play(Rotating(dot, about_point=ORIGIN, run_time=TAU, rate_func=linear))
10151015
10161016
.. manim:: DtUpdater
10171017

0 commit comments

Comments
 (0)