Skip to content

Conversation

@fmuenkel
Copy link
Contributor

Overview: What does this pull request change?

Added magic methods __floordiv__, __mod__, __mul__, __pow__, and __truediv__ for ValueTracker.

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

Based on @chopan050's suggestion in #4129.
Added unit test for the new methods as well.

Links to added or changed documentation pages

Further Information and Comments

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

Copy link
Contributor

@chopan050 chopan050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-project-automation github-project-automation bot moved this from 🆕 New to 👍 To be merged in Dev Board Jul 26, 2025
@chopan050 chopan050 changed the title Implement more arithmetic operators for ValueTracker Add support for arithmetic operators //, %, *, ** and / on ValueTracker Jul 26, 2025
@chopan050 chopan050 enabled auto-merge (squash) July 26, 2025 17:37
@chopan050 chopan050 merged commit c7ff795 into ManimCommunity:main Jul 26, 2025
21 of 22 checks passed
@github-project-automation github-project-automation bot moved this from 👍 To be merged to ✅ Done in Dev Board Jul 26, 2025
@fmuenkel fmuenkel deleted the features-value-tracker branch July 26, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants