Clean up temporary files created during resolution.
(self)
| 126 | ) |
| 127 | |
| 128 | def cleanup(self) -> None: |
| 129 | """Clean up temporary files created during resolution.""" |
| 130 | if self._temp_dir and self._temp_dir.exists(): |
| 131 | shutil.rmtree(self._temp_dir, ignore_errors=True) |
| 132 | self._temp_dir = None |
| 133 | |
| 134 | def temp_dir_for_cleanup(self) -> Path | None: |
| 135 | """Return the temp directory path if one was created (for caller to clean up after graph).""" |
no outgoing calls