Skip to content

Commit e4aac44

Browse files
committed
Fixing conflicts with main
2 parents 8d3ff53 + 7f23849 commit e4aac44

File tree

2 files changed

+47
-33
lines changed

2 files changed

+47
-33
lines changed

manim/scene/scene.py

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,51 +1752,62 @@ def manimation(
17521752
) -> Scene | Callable[[Callable[[Scene], object]], Scene]:
17531753
"""A short-hand decorator for creating an animation from a construct-like function.
17541754
1755-
This decorator creates a :class:`.Scene` object whose ``construct`` method
1756-
is created from the specified function. This allows to write (and render)
1757-
scenes in a short-hand manner::
1755+
This decorator creates a :class:`.Scene` object whose ``construct`` method
1756+
is created from the specified function. This allows to write (and render)
1757+
scenes in a short-hand manner::
17581758
1759-
@manimation
1760-
def hello_world(scene: Scene):
1761-
t = Text("Hello World!")
1762-
scene.play(Write(t))
1763-
scene.play(t.animate.scale(2))
1764-
scene.wait()
1759+
@manimation
1760+
def hello_world(scene: Scene):
1761+
t = Text("Hello World!")
1762+
scene.play(Write(t))
1763+
scene.play(t.animate.scale(2))
1764+
scene.wait()
17651765
1766+
<<<<<<< HEAD
17661767
1767-
hello_world.render()
1768+
=======
1769+
>>>>>>> 7f23849dbf3b4dabccc083e4b37efe9458d3b78d
1770+
hello_world.render()
17681771
1769-
This is equivalent to the following, *classical* way of creating and rendering
1770-
a scene::
1772+
This is equivalent to the following, *classical* way of creating and rendering
1773+
a scene::
17711774
1772-
class HelloWorld(Scene):
1773-
def construct(self):
1774-
t = Text("Hello World!")
1775-
self.play(Write(t))
1776-
self.play(t.animate.scale(2))
1777-
self.wait()
1775+
class HelloWorld(Scene):
1776+
def construct(self):
1777+
t = Text("Hello World!")
1778+
self.play(Write(t))
1779+
self.play(t.animate.scale(2))
1780+
self.wait()
17781781
1782+
<<<<<<< HEAD
17791783
1780-
scene_object = HelloWorld()
1781-
scene_object.render()
1784+
=======
1785+
>>>>>>> 7f23849dbf3b4dabccc083e4b37efe9458d3b78d
1786+
scene_object = HelloWorld()
1787+
scene_object.render()
17821788
1783-
Parameters
1784-
----------
1785-
construct_function
1786-
The (decorated) function that will be used to construct the scene.
1787-
scene_class
1788-
The base class that is used to construct the scene.
1789+
Parameters
1790+
----------
1791+
construct_function
1792+
The (decorated) function that will be used to construct the scene.
1793+
scene_class
1794+
The base class that is used to construct the scene.
17891795
1790-
Examples
1791-
--------
1796+
Examples
1797+
--------
17921798
1793-
An example for a scene using a different base class for the scene::
1799+
An example for a scene using a different base class for the scene::
17941800
1795-
@manimation(scene_class=MovingCameraScene)
1796-
def moving_around(scene: MovingCameraScene): ...
1801+
@manimation(scene_class=MovingCameraScene)
1802+
<<<<<<< HEAD
1803+
def moving_around(scene: MovingCameraScene): ...
1804+
=======
1805+
def moving_around(scene: MovingCameraScene):
1806+
...
1807+
>>>>>>> 7f23849dbf3b4dabccc083e4b37efe9458d3b78d
17971808
1798-
Note that the type hint for the scene class is optional and just
1799-
helps your IDE to suggest the correct auto-completion options.
1809+
Note that the type hint for the scene class is optional and just
1810+
helps your IDE to suggest the correct auto-completion options.
18001811
"""
18011812

18021813
def scene_decorator(construct: Callable[[Scene], None]) -> Scene:

manim/utils/module_ops.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
from pathlib import Path
1010

1111
from .. import config, console, constants, logger
12+
<<<<<<< HEAD
1213

1314
__all__ = ["scene_classes_from_file"]
15+
=======
16+
>>>>>>> 7f23849dbf3b4dabccc083e4b37efe9458d3b78d
1417

1518

1619
def get_module(file_name: Path):

0 commit comments

Comments
 (0)