Skip to content

Fix typehint of :meth:.Scene.play to allow .animate #4038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 7, 2024

Conversation

JasonGrace2282
Copy link
Member

Unfortunately, we do not have a Proxy type in python, so we have to do this.

I would like to get this merged before v0.19.0, as I suspect this could be majorly irritating to users.

@JasonGrace2282 JasonGrace2282 added the maintenance refactoring, typos, removing clutter/dead code, and other code quality improvements label Dec 3, 2024
@JasonGrace2282 JasonGrace2282 added this to the v0.19.0 milestone Dec 3, 2024
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.

The current changes seem fine!

However, shouldn't the typehint for CairoRenderer.play() also be modified? When using Cairo, Scene.play() passes all its arguments directly to CairoRenderer.play().

@JasonGrace2282
Copy link
Member Author

Nice catch, forgot about that!

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!

@chopan050 chopan050 enabled auto-merge (squash) December 7, 2024 16:49
@chopan050 chopan050 merged commit 6abcc61 into ManimCommunity:main Dec 7, 2024
20 of 21 checks passed
JasonGrace2282 added a commit to JasonGrace2282/manim that referenced this pull request Dec 16, 2024
behackl pushed a commit to JasonGrace2282/manim that referenced this pull request Jan 19, 2025
behackl added a commit that referenced this pull request Jan 20, 2025
* First draft of Changelog for 0.19.0

* fix typos

* added 3967

* Add #4037

* Update count 97 -> 98

* Add #4039

* Add #3930 and #4044

* Add this PR to changelog

* Add small description to changelog

* Add #3924, #3951, and #4038

* Bump Manim version to 0.19.0

* Update CITATION.cff to be more consistent

* remove github-security[bot]

* Feedback + missing PRs

* add newly merged PRs

* added more details to highlights + breaking changes

* bump date

* sort PRs in breaking changes section and include 3964

* sort highlights section

* fix: add required configuration key in .readthedocs.yml

* Update docs/source/changelog/0.19.0-changelog.rst

---------

Co-authored-by: Benjamin Hackl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance refactoring, typos, removing clutter/dead code, and other code quality improvements
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants