Add type hints and @staticmethod decorators to wraps functions

This commit is contained in:
Grant Sanderson
2022-12-23 17:44:00 -07:00
parent 453b863738
commit 580d57a45c
2 changed files with 4 additions and 2 deletions

View File

@ -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"]