Skip to content

Commit a9b65ee

Browse files
Revert change of default value (#4358)
1 parent dba6fa8 commit a9b65ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manim/mobject/text/tex_mobject.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(
6060
should_center: bool = True,
6161
height: float | None = None,
6262
organize_left_to_right: bool = False,
63-
tex_environment: str = "align*",
63+
tex_environment: str | None = "align*",
6464
tex_template: TexTemplate | None = None,
6565
font_size: float = DEFAULT_FONT_SIZE,
6666
color: ParsableManimColor | None = None,
@@ -260,7 +260,7 @@ def __init__(
260260
arg_separator: str = " ",
261261
substrings_to_isolate: Iterable[str] | None = None,
262262
tex_to_color_map: dict[str, ManimColor] | None = None,
263-
tex_environment: str = "align*",
263+
tex_environment: str | None = "align*",
264264
**kwargs: Any,
265265
):
266266
self.tex_template = kwargs.pop("tex_template", config["tex_template"])
@@ -466,7 +466,7 @@ def __init__(
466466
self,
467467
*tex_strings: str,
468468
arg_separator: str = "",
469-
tex_environment: str = "center",
469+
tex_environment: str | None = "center",
470470
**kwargs: Any,
471471
):
472472
super().__init__(
@@ -500,7 +500,7 @@ def __init__(
500500
*items: str,
501501
buff: float = MED_LARGE_BUFF,
502502
dot_scale_factor: float = 2,
503-
tex_environment: str = "",
503+
tex_environment: str | None = None,
504504
**kwargs: Any,
505505
):
506506
self.buff = buff

0 commit comments

Comments
 (0)