Remove @staticmethod from @wraps functions

This commit is contained in:
Grant Sanderson 2022-12-28 21:36:21 -08:00
parent 42f2461acb
commit 53f19b6620
2 changed files with 1 additions and 4 deletions

View file

@ -528,7 +528,6 @@ class Mobject(object):
# Copying and serialization
@staticmethod
def stash_mobject_pointers(func: Callable):
@wraps(func)
def wrapper(self, *args, **kwargs):
@ -1735,7 +1734,6 @@ class Mobject(object):
# Operations touching shader uniforms
@staticmethod
def affects_shader_info_id(func: Callable):
@wraps(func)
def wrapper(self):

View file

@ -904,7 +904,7 @@ class VMobject(Mobject):
if self.has_fill():
tri1 = mobject1.get_triangulation()
tri2 = mobject2.get_triangulation()
if len(tri1) != len(tri1) or not (tri1 == tri2).all():
if len(tri1) != len(tri2) or not (tri1 == tri2).all():
self.refresh_triangulation()
return self
@ -1019,7 +1019,6 @@ class VMobject(Mobject):
self.needs_new_triangulation = False
return tri_indices
@staticmethod
def triggers_refreshed_triangulation(func: Callable):
@wraps(func)
def wrapper(self, *args, **kwargs):