Update manimlib/mobject/mobject.py

Small bug fix to Mobject.__add__
This commit is contained in:
Grant Sanderson 2021-11-01 13:16:50 -07:00 committed by GitHub
parent 77159eea2e
commit f0b5181694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ class Mobject(object):
def __add__(self, other : 'Mobject') -> 'Mobject':
assert(isinstance(other, Mobject))
return self.get_group_class(self, other)
return self.get_group_class()(self, other)
def __mul__(self, other : 'int') -> 'Mobject':
assert(isinstance(other, int))