From 6766e459f21ae408090d83957ae02940e54ac7a6 Mon Sep 17 00:00:00 2001 From: Bill Xi <86190295+BillyLikesHacking@users.noreply.github.com> Date: Sun, 31 Oct 2021 20:03:04 +0800 Subject: [PATCH] Update vectorized_mobject.py --- manimlib/mobject/types/vectorized_mobject.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index d4cf19ca..0e930084 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -991,6 +991,7 @@ class VGroup(VMobject): self.add(*vmobjects) def __add__(self:'VGroup', other : 'VMobject' or 'VGroup'): + assert(isinstance(other, VMobject)) return self.add(other)