We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8031a1 commit a7c3a2eCopy full SHA for a7c3a2e
manim/data_structures.py
@@ -0,0 +1,29 @@
1
+from __future__ import annotations
2
+
3
+from collections.abc import Iterable
4
+from dataclasses import dataclass
5
+from types import MethodType
6
+from typing import Any
7
8
9
+@dataclass
10
+class MethodWithArgs:
11
+ __slots__ = ["method", "args", "kwargs"]
12
+ method: MethodType
13
+ args: Iterable[Any]
14
+ kwargs: dict[str, Any]
15
16
17
+class SceneInteractRerun:
18
+ __slots__ = ["sender", "kwargs"]
19
20
+ def __init__(self, sender: str, **kwargs: Any) -> None:
21
+ self.sender = sender
22
+ self.kwargs = kwargs
23
24
25
+class SceneInteractExit:
26
+ __slots__ = ["sender"]
27
28
+ def __init__(self, sender: str) -> None:
29
0 commit comments