Skip to content

Commit 3c1ca10

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1e6be03 commit 3c1ca10

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

manim/_config/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,10 +1096,7 @@ def format(self, val: str) -> None:
10961096

10971097
background_color = property(
10981098
lambda self: self._d["background_color"],
1099-
lambda self, val: self._d.__setitem__(
1100-
"background_color",
1101-
ManimColor(val)
1102-
),
1099+
lambda self, val: self._d.__setitem__("background_color", ManimColor(val)),
11031100
doc="Background color of the scene (-c).",
11041101
)
11051102

manim/animation/changing.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
from manim._config import config
1010
from manim.mobject.opengl.opengl_compatibility import ConvertToOpenGL
1111
from manim.mobject.types.vectorized_mobject import VGroup, VMobject
12-
from manim.utils.color import ParsableManimColor, BLUE_B, BLUE_D, BLUE_E, GREY_BROWN, WHITE
12+
from manim.utils.color import (
13+
BLUE_B,
14+
BLUE_D,
15+
BLUE_E,
16+
GREY_BROWN,
17+
WHITE,
18+
ParsableManimColor,
19+
)
1320
from manim.utils.rate_functions import smooth
1421

1522

manim/mobject/three_d/three_dimensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
from manim.mobject.opengl.opengl_mobject import OpenGLMobject
3030
from manim.mobject.types.vectorized_mobject import VGroup, VMobject
3131
from manim.utils.color import (
32-
ParsableManimColor,
33-
ManimColor,
3432
BLUE,
3533
BLUE_D,
3634
BLUE_E,
3735
LIGHT_GREY,
3836
WHITE,
37+
ManimColor,
38+
ParsableManimColor,
3939
interpolate_color,
4040
)
4141
from manim.utils.iterables import tuplify

manim/utils/color/X11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""X11 Colors
44
5-
These color and their names (taken from
5+
These color and their names (taken from
66
`https://www.w3schools.com/colors/colors_x11.asp`__) were developed at the
77
Massachusetts Intitute of Technology (MIT) during
88
the development of color based computer display system.

manim/utils/color/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
from ...utils.space_ops import normalize
2020

21-
2221
ManimColorDType: TypeAlias = np.float64
2322
ManimFloat: TypeAlias = np.float64
2423
ManimInt: TypeAlias = np.int64
@@ -59,6 +58,7 @@ class ManimColor:
5958
The opacity of the color. By default, colors are
6059
fully opaque (value 1.0).
6160
"""
61+
6262
def __init__(
6363
self,
6464
value: ParsableManimColor,

0 commit comments

Comments
 (0)