Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

use Tuple use typing.Any where no anything is possible don't leave it empty

Syrus Dark062b6345e414
diff --git a/manim/utils/bezier.py b/manim/utils/bezier.py
index c2aff9854..4a2684d52 100644
--- a/manim/utils/bezier.py
+++ b/manim/utils/bezier.py
@@ -177,5 +177,5 @@ def diag_to_matrix(l_and_u: typing.Tuple[int, int], diag: np.ndarray) -> np.ndar
return matrix
-def is_closed(points: typing.Iterator[np.ndarray, np.ndarray]) -> bool:
+def is_closed(points: typing.Tuple[np.ndarray, np.ndarray]) -> bool:
return np.allclose(points[0], points[-1])
diff --git a/manim/utils/rate_functions.py b/manim/utils/rate_functions.py
index 22aece2d4..b0cda4781 100644
--- a/manim/utils/rate_functions.py
+++ b/manim/utils/rate_functions.py
@@ -140,12 +140,10 @@ def wiggle(t: float, wiggles: float = 2) -> np.ndarray:
def squish_rate_func(
- func: typing.Callable[
- [float],
- ],
+ func: typing.Callable[[float],typing.Any],
a: float = 0.4,
b: float = 0.6,
-) -> typing.Callable[[float],]: # what is func return type?
+) -> typing.Callable[[float],typing.Any]: # what is func return type?
def result(t):
if a == b:
return a