(self, msg: dict)
| 131 | return self._id |
| 132 | |
| 133 | def _send(self, msg: dict) -> None: |
| 134 | assert self.proc.stdin is not None |
| 135 | self.proc.stdin.write((json.dumps(msg) + "\n").encode()) |
| 136 | self.proc.stdin.flush() |
| 137 | |
| 138 | def _readline_blocking(self, timeout: float) -> dict | None: |
| 139 | """Read one JSON-RPC message, respecting `timeout`. Returns |