(py_file: str)
| 6 | import tempfile |
| 7 | |
| 8 | def _get_class_names(py_file: str) -> list[str]: |
| 9 | file_path = Path(py_file) |
| 10 | source = file_path.read_text(encoding="utf-8") |
| 11 | tree = ast.parse(source, filename=str(file_path)) |
| 12 | return [node.name for node in ast.walk(tree) if isinstance(node, ast.ClassDef)] |
| 13 | |
| 14 | def render_manim( |
| 15 | script_path: str, |