Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

add type for colour

Naveen M Kcefd2ae68bda
diff --git a/manim/mobject/svg/text_mobject.py b/manim/mobject/svg/text_mobject.py
index 46e6ddfa3..2456e9c6b 100644
--- a/manim/mobject/svg/text_mobject.py
+++ b/manim/mobject/svg/text_mobject.py
@@ -723,7 +723,7 @@ class Text(SVGMobject):
text: str,
fill_opacity: int = 1,
stroke_width: int = 0,
- color=WHITE, # what should be this type?
+ color: str = WHITE,
size: int = 1,
line_spacing: int = -1,
font: str = "",