#4983·manim

`CurvesAsSubmobjects` error messages contain hardcoded class names

Author: nikolajmunkCreated Sep 1, 2026Updated Sep 23, 2026
Labelsgood first issue

The class CurvesAsSubmobjects throws two custom error messages for when it either has no submobjects or it has no submobjects with points: https://github.com/ManimCommunity/manim/blob/cafc63919eb03d398d7038a8c82e591b12de8da5/manim/mobject/types/vectorized_mobject.py#L2858-L2874 These error messages contain a hardcodes class name, causing issues if CurvesAsSubmobjects is subclassed. This should be fixed.

This implementation was originally a response to a hardcoded class name in the throw_error_if_no_points method of Mobject, but that has since been made dynamic (#4927) so this override is now unnecessary. It's possible that the "no submobjects with points" case might need special handling in CurvesAsSubmobjects, but it should likely be based on the error message produced in Mobject.throw_error_if_no_points. Or perhaps Mobject needs a throw_error_if_no_submobjects_with_points method? Not sure, use your best judgment.

This issue is labeled "good first issue" and is intended for a human who wants to start contributing to the library, so AI-generated pull requests are discouraged. Say hi either here or on Discord if you are interested in familiarising yourself with the codebase, we're happy to provide pointers.