Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

allow Mobject also

Syrus Dark349a274d9876
diff --git a/manim/animation/fading.py b/manim/animation/fading.py
index 1436cef8e..6841a0d5c 100644
--- a/manim/animation/fading.py
+++ b/manim/animation/fading.py
@@ -156,8 +156,8 @@ class FadeOutAndShiftDown(FadeOutAndShift):
class FadeInFromPoint(FadeIn):
def __init__(
- self, mobject: "Mobject", point: np.ndarray, **kwargs
- ) -> None: # is point typed correctly?
+ self, mobject: "Mobject", point: typing.Union[Mobject,np.ndarray], **kwargs
+ ) -> None:
self.point = point
super().__init__(mobject, **kwargs)