Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

small change type typing.Callable-> float 0 -> 0.0

Syrus Darke1d39b434748
diff --git a/manim/animation/animation.py b/manim/animation/animation.py
index d6902c477..214451584 100644
--- a/manim/animation/animation.py
+++ b/manim/animation/animation.py
@@ -17,7 +17,7 @@ from ..mobject.mobject import Mobject
from ..utils.rate_functions import smooth
DEFAULT_ANIMATION_RUN_TIME: float = 1.0
-DEFAULT_ANIMATION_LAG_RATIO: float = 0
+DEFAULT_ANIMATION_LAG_RATIO: float = 0.0
class Animation:
diff --git a/manim/utils/rate_functions.py b/manim/utils/rate_functions.py
index 21142ba44..9b68ab487 100644
--- a/manim/utils/rate_functions.py
+++ b/manim/utils/rate_functions.py
@@ -164,7 +164,7 @@ def squish_rate_func(
# "lingering", different from squish_rate_func's default params
-def lingering(t: float) -> typing.Callable: # not sure of return type
+def lingering(t: float) -> float: # not sure of return type
return squish_rate_func(lambda t: t, 0, 0.8)(t)