Skip to content

Commit

Permalink
fix type hint of indication.py (ManimCommunity#3613)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan-xy committed Feb 4, 2024
1 parent 1520481 commit ed1b203
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions manim/animation/indication.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def construct(self):

def __init__(
self,
mobject: "Mobject",
mobject: Mobject,
scale_factor: float = 1.2,
color: str = YELLOW,
rate_func: Callable[[float, Optional[float]], np.ndarray] = there_and_back,
Expand All @@ -158,7 +158,7 @@ def __init__(
self.scale_factor = scale_factor
super().__init__(mobject, rate_func=rate_func, **kwargs)

def create_target(self) -> "Mobject":
def create_target(self) -> Mobject:
target = self.mobject.copy()
target.scale(self.scale_factor)
target.set_color(self.color)
Expand Down Expand Up @@ -348,7 +348,7 @@ def __init__(self, vmobject, n_segments=10, time_width=0.1, remover=True, **kwar
message="Use Create then FadeOut to achieve this effect.",
)
class ShowCreationThenFadeOut(Succession):
def __init__(self, mobject: "Mobject", remover: bool = True, **kwargs) -> None:
def __init__(self, mobject: Mobject, remover: bool = True, **kwargs) -> None:
super().__init__(Create(mobject), FadeOut(mobject), remover=remover, **kwargs)


Expand Down Expand Up @@ -397,7 +397,7 @@ def construct(self):

def __init__(
self,
mobject: "Mobject",
mobject: Mobject,
direction: np.ndarray = UP,
amplitude: float = 0.2,
wave_func: Callable[[float], float] = smooth,
Expand Down Expand Up @@ -516,7 +516,7 @@ def construct(self):

def __init__(
self,
mobject: "Mobject",
mobject: Mobject,
scale_value: float = 1.1,
rotation_angle: float = 0.01 * TAU,
n_wiggles: int = 6,
Expand Down Expand Up @@ -544,8 +544,8 @@ def get_rotate_about_point(self) -> np.ndarray:

def interpolate_submobject(
self,
submobject: "Mobject",
starting_submobject: "Mobject",
submobject: Mobject,
starting_submobject: Mobject,
alpha: float,
) -> None:
submobject.points[:, :] = starting_submobject.points
Expand Down

0 comments on commit ed1b203

Please sign in to comment.