mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
Add type hints and @staticmethod decorators to wraps functions
This commit is contained in:
@ -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"]
|
||||
|
Reference in New Issue
Block a user