Skip to content

Commit 29759b5

Browse files
authored
Merge branch 'main' into fix-line-buff-patharc
2 parents d010791 + 3c6a1ee commit 29759b5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: check-toml
1414
name: Validate pyproject.toml
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.9.7
16+
rev: v0.11.0
1717
hooks:
1818
- id: ruff
1919
name: ruff lint

docs/source/guides/using_text.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ For example:
5050
)
5151
self.add(text)
5252

53-
.. _Pango library: https://pango.gnome.org
53+
.. _Pango library: https://pango.org
5454

5555
Working with :class:`~.Text`
5656
============================

manim/mobject/graph.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _tree_layout(
335335
# Always make a copy of the children because they get eaten
336336
stack = [list(children[root_vertex]).copy()]
337337
stick = [root_vertex]
338-
parent = {u: root_vertex for u in children[root_vertex]}
338+
parent = dict.fromkeys(children[root_vertex], root_vertex)
339339
pos = {}
340340
obstruction = [0.0] * len(T)
341341
o = -1 if orientation == "down" else 1
@@ -810,12 +810,12 @@ def _create_vertices(
810810
vertex_mobjects = {}
811811

812812
graph_center = self.get_center()
813-
base_positions = {v: graph_center for v in vertices}
813+
base_positions = dict.fromkeys(vertices, graph_center)
814814
base_positions.update(positions)
815815
positions = base_positions
816816

817817
if isinstance(labels, bool):
818-
labels = {v: labels for v in vertices}
818+
labels = dict.fromkeys(vertices, labels)
819819
else:
820820
assert isinstance(labels, dict)
821821
base_labels = dict.fromkeys(vertices, False)

manim/mobject/text/text_mobject.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _change_alignment_for_a_line(self, alignment: str, line_no: int) -> None:
301301

302302

303303
class Text(SVGMobject):
304-
r"""Display (non-LaTeX) text rendered using `Pango <https://pango.gnome.org/>`_.
304+
r"""Display (non-LaTeX) text rendered using `Pango <https://pango.org/>`_.
305305
306306
Text objects behave like a :class:`.VGroup`-like iterable of all characters
307307
in the given text. In particular, slicing is possible.
@@ -864,7 +864,7 @@ def init_colors(self, propagate_colors=True):
864864

865865

866866
class MarkupText(SVGMobject):
867-
r"""Display (non-LaTeX) text rendered using `Pango <https://pango.gnome.org/>`_.
867+
r"""Display (non-LaTeX) text rendered using `Pango <https://pango.org/>`_.
868868
869869
Text objects behave like a :class:`.VGroup`-like iterable of all characters
870870
in the given text. In particular, slicing is possible.

0 commit comments

Comments
 (0)