Skip to content

Commit 2f28e69

Browse files
committed
Add type hints to scene/moving_camera_scene.py
1 parent 8ff2b35 commit 2f28e69

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

manim/scene/moving_camera_scene.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ def create_scene(number):
8989

9090
__all__ = ["MovingCameraScene"]
9191

92+
from typing import Any
93+
9294
from manim.animation.animation import Animation
95+
from manim.mobject.mobject import Mobject
9396

9497
from ..camera.moving_camera import MovingCamera
9598
from ..scene.scene import Scene
@@ -111,10 +114,12 @@ class MovingCameraScene(Scene):
111114
:class:`.MovingCamera`
112115
"""
113116

114-
def __init__(self, camera_class=MovingCamera, **kwargs):
117+
def __init__(
118+
self, camera_class: type[MovingCamera] = MovingCamera, **kwargs: Any
119+
) -> None:
115120
super().__init__(camera_class=camera_class, **kwargs)
116121

117-
def get_moving_mobjects(self, *animations: Animation):
122+
def get_moving_mobjects(self, *animations: Animation) -> list[Mobject]:
118123
"""
119124
This method returns a list of all of the Mobjects in the Scene that
120125
are moving, that are also in the animations passed.

0 commit comments

Comments
 (0)