A community-maintained Python framework for creating mathematical animations.
Modify ``set_default`` example to prevent leaking across the docs. (#2176)
Laith Bahodi8600c7c4dadb
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.pyindex f9fac8a11..3ae735c14 100644--- a/manim/mobject/mobject.py+++ b/manim/mobject/mobject.py@@ -215,6 +215,9 @@ class Mobject:Text.set_default(color=BLACK)self.add(Text("Changing default values is easy!"))+ # we revert the colour back to the default to prevent a bug in the docs.+ Text.set_default(color=WHITE)+"""if kwargs:cls.__init__ = partialmethod(cls.__init__, **kwargs)