Skip to content

Docstrings added/modified and some methods refactored#4683

Open
GoThrones wants to merge 19 commits intoManimCommunity:mainfrom
GoThrones:docstring_and_method_refactoring_in_VMobject_class
Open

Docstrings added/modified and some methods refactored#4683
GoThrones wants to merge 19 commits intoManimCommunity:mainfrom
GoThrones:docstring_and_method_refactoring_in_VMobject_class

Conversation

@GoThrones
Copy link
Copy Markdown
Contributor

@GoThrones GoThrones commented Apr 11, 2026

Overview: What does this pull request change?

This PR adds docstring to some methods, and refactors some of the methods, and in some cases, variable names have been improved. The changes are mostly in vectorized_mobject.py and some minor changes are in mobject.py and space_ops.py.

Motivation and Explanation: Why and how do your changes improve the library?

Many methods did not have docstrings. Some of the methods didn't have clear enough docstring.
Some methods, such as add_smooth_curve_to in VMobject class has been refactord as it didn't consider edge cases.
The method consider_points_equals in VMobject class has also been refactored to make it time efficient. Before refactoring, this method used np.allclose which was much slower compared to the current implementation.

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

GoThrones and others added 18 commits April 11, 2026 20:35
@GoThrones
Copy link
Copy Markdown
Contributor Author

Doc build is getting terminated due to timeout. This is happening repeatedly. All other tests are getting timed out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant