Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

enable code completion on animate method of Mobject class in supporting IDE's e.g. PyCharm (#3014)

vahndia97ab066c46a
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index c7e9bfb21..4def2c5a8 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -226,7 +226,7 @@ class Mobject:
cls.__init__ = cls._original__init__
@property
- def animate(self):
+ def animate(self) -> _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