Skip to content

Commit bd32291

Browse files
committed
broke some too long lines
1 parent d1bc9fc commit bd32291

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

manim/utils/color/core.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ def __init__(
194194
self._internal_value = np.array([0, 0, 0, alpha], dtype=ManimColorDType)
195195
elif isinstance(value, ManimColor):
196196
# logger.info(
197-
# "ManimColor was passed another ManimColor. This is probably not what you want. Created a copy of the passed ManimColor instead."
197+
# "ManimColor was passed another ManimColor. This is probably not what "
198+
# "you want. Created a copy of the passed ManimColor instead."
198199
# )
199200
self._internal_value = value._internal_value
200201
elif isinstance(value, int):
@@ -207,8 +208,8 @@ def __init__(
207208
)
208209
else:
209210
# This is not expected to be called on module initialization time
210-
# It can be horribly slow to convert a string to a color because it has to access the dictionary of colors and find the right color
211-
self._internal_value = ManimColor._internal_from_string(value)
211+
# It can be horribly slow to convert a string to a color because
212+
# it has to access the dictionary of colors and find the right color
212213
elif isinstance(value, (list, tuple, np.ndarray)):
213214
length = len(value)
214215
if all(isinstance(x, float) for x in value):
@@ -234,7 +235,9 @@ def __init__(
234235
else:
235236
# logger.error(f"Invalid color value: {value}")
236237
raise TypeError(
237-
f"ManimColor only accepts int, str, list[int, int, int], list[int, int, int, int], list[float, float, float], list[float, float, float, float], not {type(value)}"
238+
"ManimColor only accepts int, str, list[int, int, int], "
239+
"list[int, int, int, int], list[float, float, float], "
240+
f"list[float, float, float, float], not {type(value)}"
238241
)
239242

240243
@property

0 commit comments

Comments
 (0)