mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update mobject.py
This commit is contained in:
parent
5d942d5ac0
commit
b531c82bc4
1 changed files with 4 additions and 2 deletions
|
@ -82,10 +82,12 @@ class Mobject(object):
|
|||
def __str__(self):
|
||||
return self.__class__.__name__
|
||||
|
||||
def __add__(self, other : 'Mobject'):
|
||||
def __add__(self, other : 'Mobject') -> 'Mobject':
|
||||
assert(isinstance(other, Mobject))
|
||||
return self.get_group_class(self, other)
|
||||
|
||||
def __mul__(self, other : 'int'):
|
||||
def __mul__(self, other : 'int') -> 'Mobject':
|
||||
assert(isinstance(other, int))
|
||||
return self.replicate(other)
|
||||
|
||||
def init_data(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue