Update mobject.py

This commit is contained in:
Bill Xi 2021-10-31 18:37:12 +08:00 committed by GitHub
parent f9a6fa7036
commit 82540edae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ class Mobject(object):
return self.__class__.__name__
def __add__(self, other : 'Mobject'):
return Group(self, other)
return self.get_group_class(self, other)
def __mul__(self, other : 'int'):
return self.replicate(other)