SIGN IN SIGN UP
3b1b / manim UNCLAIMED

Animation engine for explanatory math videos

0 0 3 Python

Enhance Autocompletion for `mobject.animate.` to Display `Mobject` Methods (#2342)

* Improve autocompletion for mobject.animate to show Mobject methods

- Added type hint `-> _AnimationBuilder | Self` to `Mobject.animate`, enabling autocompletion for `Mobject` methods after `mobject.animate`.

- Prioritized `typing_extensions.Self` over `typing.Self` in imports, so autocompletion of `Mobject` methods also works in Python < 3.11.

* Support `mobject.animate.` autocompletion in IPython

* Add docstring to `__dir__` and add return type hint

* improve docsting `__dir__` _AnimationBuilder
I
Irvanal Haq committed
6fb1845f4a4dd1cd22519b0a10a99a56fc171619
Parent: 7787730
Committed by GitHub <noreply@github.com> on 6/10/2025, 3:13:29 PM