Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix BulletedList TeX environment problem and add a typing to get_module (#936)

kilacoda7fcbe9a6f33a
diff --git a/manim/mobject/svg/tex_mobject.py b/manim/mobject/svg/tex_mobject.py
index a8364f9e9..a7ff6c1bf 100644
--- a/manim/mobject/svg/tex_mobject.py
+++ b/manim/mobject/svg/tex_mobject.py
@@ -521,7 +521,9 @@ class BulletedList(Tex):
self.dot_scale_factor = dot_scale_factor
self.tex_environment = tex_environment
line_separated_items = [s + "\\\\" for s in items]
- Tex.__init__(self, *line_separated_items, **kwargs)
+ Tex.__init__(
+ self, *line_separated_items, tex_environment=tex_environment, **kwargs
+ )
for part in self:
dot = MathTex("\\cdot").scale(self.dot_scale_factor)
dot.next_to(part[0], LEFT, SMALL_BUFF)
diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py
index eafc30fbe..ce54904e1 100644
--- a/manim/utils/module_ops.py
+++ b/manim/utils/module_ops.py
@@ -8,7 +8,7 @@ import types
import re
-def get_module(file_name):
+def get_module(file_name: Path):
if str(file_name) == "-":
module = types.ModuleType("input_scenes")
logger.info(