Skip to content

Commit e13ca7e

Browse files
committed
chore(lib): use pydantic color
1 parent 6c9505b commit e13ca7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manim_slides/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
conlist,
3030
)
3131
from pydantic_core import CoreSchema, core_schema
32+
from pydantic_extra_types.color import Color
3233
from tqdm import tqdm
3334

3435
from . import templates
@@ -339,7 +340,7 @@ class RevealJS(Converter):
339340
hide_inactive_cursor: JsBool = JsBool.true
340341
hide_cursor_time: int = 5000
341342
# Add. options
342-
background_color: str = "black" # TODO: use pydantic.color.Color
343+
background_color: Color = "black"
343344
reveal_version: str = "4.6.1"
344345
reveal_theme: RevealTheme = RevealTheme.black
345346
title: str = "Manim Slides"

0 commit comments

Comments
 (0)