diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index f74d1475..720d6971 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -534,7 +534,8 @@ class Mobject(object): # Copying and serialization - def stash_mobject_pointers(func): + @staticmethod + def stash_mobject_pointers(func: Callable): @wraps(func) def wrapper(self, *args, **kwargs): uncopied_attrs = ["parents", "target", "saved_state"] diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 8f29cf1e..2629552c 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -1004,7 +1004,8 @@ class VMobject(Mobject): self.needs_new_triangulation = False return tri_indices - def triggers_refreshed_triangulation(func): + @staticmethod + def triggers_refreshed_triangulation(func: Callable): @wraps(func) def wrapper(self, *args, **kwargs): old_points = self.get_points().copy()