From db52d0a73fee96c71fbcf5e99320c5933a769d2d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Fri, 23 Dec 2022 17:45:35 -0700 Subject: [PATCH] Add type hints and @staticmethod decorators to wraps functions --- manimlib/mobject/mobject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 720d6971..61cd07ce 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -1741,7 +1741,8 @@ class Mobject(object): # Operations touching shader uniforms - def affects_shader_info_id(func): + @staticmethod + def affects_shader_info_id(func: Callable): @wraps(func) def wrapper(self): for mob in self.get_family():