(self)
| 35 | self._pty_master_ref = None |
| 36 | |
| 37 | def __del__(self): |
| 38 | # Simple cleanup on object destruction |
| 39 | import nest_asyncio |
| 40 | |
| 41 | nest_asyncio.apply() |
| 42 | if hasattr(self, "close"): |
| 43 | try: |
| 44 | asyncio.run(self.close()) |
| 45 | except Exception: |
| 46 | pass |
| 47 | |
| 48 | # ── user-facing coroutines ──────────────────────────────────────── |
| 49 | async def start(self): |