Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed Animate Type-hint (#3543)

Jason Gracedd327a37ca78
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index 3051b161e..0b4dbbc78 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -238,7 +238,7 @@ class Mobject:
cls.__init__ = cls._original__init__
@property
- def animate(self) -> _AnimationBuilder | T:
+ def animate(self: T) -> _AnimationBuilder | T:
"""Used to animate the application of any method of :code:`self`.
Any method called on :code:`animate` is converted to an animation of applying