Skip to content

Commit ed1b203

Browse files
authored
fix type hint of indication.py (#3613)
1 parent 1520481 commit ed1b203

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

manim/animation/indication.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def construct(self):
148148

149149
def __init__(
150150
self,
151-
mobject: "Mobject",
151+
mobject: Mobject,
152152
scale_factor: float = 1.2,
153153
color: str = YELLOW,
154154
rate_func: Callable[[float, Optional[float]], np.ndarray] = there_and_back,
@@ -158,7 +158,7 @@ def __init__(
158158
self.scale_factor = scale_factor
159159
super().__init__(mobject, rate_func=rate_func, **kwargs)
160160

161-
def create_target(self) -> "Mobject":
161+
def create_target(self) -> Mobject:
162162
target = self.mobject.copy()
163163
target.scale(self.scale_factor)
164164
target.set_color(self.color)
@@ -348,7 +348,7 @@ def __init__(self, vmobject, n_segments=10, time_width=0.1, remover=True, **kwar
348348
message="Use Create then FadeOut to achieve this effect.",
349349
)
350350
class ShowCreationThenFadeOut(Succession):
351-
def __init__(self, mobject: "Mobject", remover: bool = True, **kwargs) -> None:
351+
def __init__(self, mobject: Mobject, remover: bool = True, **kwargs) -> None:
352352
super().__init__(Create(mobject), FadeOut(mobject), remover=remover, **kwargs)
353353

354354

@@ -397,7 +397,7 @@ def construct(self):
397397

398398
def __init__(
399399
self,
400-
mobject: "Mobject",
400+
mobject: Mobject,
401401
direction: np.ndarray = UP,
402402
amplitude: float = 0.2,
403403
wave_func: Callable[[float], float] = smooth,
@@ -516,7 +516,7 @@ def construct(self):
516516

517517
def __init__(
518518
self,
519-
mobject: "Mobject",
519+
mobject: Mobject,
520520
scale_value: float = 1.1,
521521
rotation_angle: float = 0.01 * TAU,
522522
n_wiggles: int = 6,
@@ -544,8 +544,8 @@ def get_rotate_about_point(self) -> np.ndarray:
544544

545545
def interpolate_submobject(
546546
self,
547-
submobject: "Mobject",
548-
starting_submobject: "Mobject",
547+
submobject: Mobject,
548+
starting_submobject: Mobject,
549549
alpha: float,
550550
) -> None:
551551
submobject.points[:, :] = starting_submobject.points

0 commit comments

Comments
 (0)