-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add type hints to animation
#3457
base: main
Are you sure you want to change the base?
Conversation
@@ -400,9 +402,9 @@ def construct(self): | |||
def __init__( | |||
self, | |||
vmobject: VMobject, | |||
rate_func: Callable[[float], float] = linear, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should rate_func
be passed to super
? (i.e. in this case Write
). It is currently unused.
self.suspend_mobject_updating: bool = suspend_mobject_updating | ||
self.lag_ratio: float = lag_ratio | ||
self._on_finish: Callable[[Scene], None] = _on_finish | ||
self.run_time = run_time |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class Warning
Flash
Assignment overwrites attribute run_time, which was previously defined in subclass
TransformAnimations
Assignment overwrites attribute run_time, which was previously defined in subclass
TransformAnimations
self.lag_ratio: float = lag_ratio | ||
self._on_finish: Callable[[Scene], None] = _on_finish | ||
self.run_time = run_time | ||
self.rate_func = rate_func |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class Warning
AnimationGroup
Assignment overwrites attribute rate_func, which was previously defined in subclass
ChangeSpeed
self.rate_func = rate_func | ||
self.reverse_rate_function = reverse_rate_function | ||
self.name = name | ||
self.remover = remover |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class Warning
ShowPassingFlashWithThinningStrokeWidth
manim/manim/animation/creation.py Lines 122 to 130 in 4315549
|
It would seem so! |
Consider this a first pass. They are still too many mypy errors to actually enable this module. I first want to go over simple modules and I'll come back to this one later. |
Part of #3375.