Add type hints and @staticmethod decorators to wraps functions

This commit is contained in:
Grant Sanderson
2022-12-23 17:45:35 -07:00
parent 580d57a45c
commit db52d0a73f

View File

@ -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():