Skip to content

Commit a7c3a2e

Browse files
committed
Add missing manim.data_structures file
1 parent b8031a1 commit a7c3a2e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

manim/data_structures.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
self.sender = sender

0 commit comments

Comments
 (0)