mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Add type hints and @staticmethod decorators to wraps functions
This commit is contained in:
@ -1741,7 +1741,8 @@ class Mobject(object):
|
|||||||
|
|
||||||
# Operations touching shader uniforms
|
# Operations touching shader uniforms
|
||||||
|
|
||||||
def affects_shader_info_id(func):
|
@staticmethod
|
||||||
|
def affects_shader_info_id(func: Callable):
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapper(self):
|
def wrapper(self):
|
||||||
for mob in self.get_family():
|
for mob in self.get_family():
|
||||||
|
Reference in New Issue
Block a user