Skip to content

Commit 4d2b22d

Browse files
pre-commit-ci[bot]JasonGrace2282
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6ae8526 commit 4d2b22d

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

manim/animation/animation.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
from ..mobject.mobject import Mobject
1212
from ..mobject.opengl import opengl_mobject
1313
from ..utils.rate_functions import linear, smooth
14-
from .scene_buffer import SceneBuffer
1514
from .protocol import AnimationProtocol
15+
from .scene_buffer import SceneBuffer
1616

1717
__all__ = ["Animation", "Wait", "override_animation"]
1818

1919

2020
from copy import deepcopy
21-
from typing import TYPE_CHECKING, Callable, Iterable, TypeVar, Sequence
21+
from typing import TYPE_CHECKING, Callable, Iterable, Sequence, TypeVar
2222

2323
if TYPE_CHECKING:
2424
from typing_extensions import Self
@@ -468,7 +468,9 @@ def is_introducer(self) -> bool:
468468

469469

470470
def prepare_animation(
471-
anim: AnimationProtocol | mobject._AnimationBuilder | opengl_mobject._AnimationBuilder,
471+
anim: AnimationProtocol
472+
| mobject._AnimationBuilder
473+
| opengl_mobject._AnimationBuilder,
472474
) -> Animation:
473475
r"""Returns either an unchanged animation, or the animation built
474476
from a passed animation factory.

manim/animation/protocol.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
from .scene_buffer import SceneBuffer
88

99

10-
__all__ = (
11-
"AnimationProtocol",
12-
)
10+
__all__ = ("AnimationProtocol",)
1311

1412

1513
class AnimationProtocol(Protocol):

manim/animation/scene_buffer.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TYPE_CHECKING, final, Sequence
1+
from typing import TYPE_CHECKING, Sequence, final
22

33
if TYPE_CHECKING:
44
from manim.mobject.opengl.opengl_mobject import OpenGLMobject as Mobject
@@ -58,8 +58,5 @@ def __str__(self) -> str:
5858

5959

6060
def check_args(mobs: Sequence[Mobject]) -> None:
61-
if not (
62-
isinstance(mobs, Sequence)
63-
and all(isinstance(x, Mobject) for x in mobs)
64-
):
61+
if not (isinstance(mobs, Sequence) and all(isinstance(x, Mobject) for x in mobs)):
6562
raise TypeError("Must set to a list of Mobjects")

manim/scene/scene.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from manim.scene.scene_file_writer import SceneFileWriter
2828
from manim.utils.color import RED
2929
from manim.utils.family_ops import extract_mobject_family_members
30-
3130
from manim.utils.iterables import list_difference_update
3231
from manim.utils.module_ops import get_module
3332

0 commit comments

Comments
 (0)