A community-maintained Python framework for creating mathematical animations.
Correct type hint for `labels` parameter of :class:`~.Graph` (#2327)
citrusmunchdaf6fb4c8e27
diff --git a/manim/mobject/graph.py b/manim/mobject/graph.pyindex 004e459e1..2ff065e0d 100644--- a/manim/mobject/graph.py+++ b/manim/mobject/graph.py@@ -356,7 +356,7 @@ class Graph(VMobject, metaclass=ConvertToOpenGL):self,vertices: List[Hashable],edges: List[Tuple[Hashable, Hashable]],- labels: bool = False,+ labels: Union[bool, dict] = False,label_fill_color: str = BLACK,layout: Union[str, dict] = "spring",layout_scale: float = 2,