mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add type hints and @staticmethod decorators to wraps functions
This commit is contained in:
parent
580d57a45c
commit
db52d0a73f
1 changed files with 2 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue