From b9b35c68027cec05ae0ce2c2aaea1c0ea7a96eb3 Mon Sep 17 00:00:00 2001 From: GoThrones Date: Tue, 14 Apr 2026 14:54:03 +0530 Subject: [PATCH 1/2] modified the docstring of CurveAsSubmobjects and point_from_proportion of this class --- manim/mobject/types/vectorized_mobject.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manim/mobject/types/vectorized_mobject.py b/manim/mobject/types/vectorized_mobject.py index 19cb14d591..a5bfd1cf9c 100644 --- a/manim/mobject/types/vectorized_mobject.py +++ b/manim/mobject/types/vectorized_mobject.py @@ -55,6 +55,8 @@ from manim.typing import ( CubicBezierPath, CubicBezierPointsLike, + CubicBezierPoints_Array, + CubicBezierPathLike, CubicSpline, FloatRGBA, FloatRGBA_Array, @@ -2703,7 +2705,8 @@ def set_location(self, new_loc: Point3D): class CurvesAsSubmobjects(VGroup): - """Convert a curve's elements to submobjects. + """Converts every single cubic Bezier points set(comprising 4 points) of the given VMobject, + into a VMobject and stores it in a container VGroup. Examples -------- @@ -2729,7 +2732,7 @@ def __init__(self, vmobject: VMobject, **kwargs) -> None: self.add(part) def point_from_proportion(self, alpha: float) -> Point3D: - """Gets the point at a proportion along the path of the :class:`CurvesAsSubmobjects`. + """Returns the point at a proportion along the path of the :class:`CurvesAsSubmobjects`. Parameters ---------- From 326ef177f48b184387bb45ff77336e1c9a580cac Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Apr 2026 09:26:32 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- manim/mobject/types/vectorized_mobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manim/mobject/types/vectorized_mobject.py b/manim/mobject/types/vectorized_mobject.py index a5bfd1cf9c..9c21e7cd6e 100644 --- a/manim/mobject/types/vectorized_mobject.py +++ b/manim/mobject/types/vectorized_mobject.py @@ -54,9 +54,9 @@ from manim.typing import ( CubicBezierPath, - CubicBezierPointsLike, - CubicBezierPoints_Array, CubicBezierPathLike, + CubicBezierPoints_Array, + CubicBezierPointsLike, CubicSpline, FloatRGBA, FloatRGBA_Array,