MCPcopy Index your code
hub / github.com/python/mypy / close

Method close

mypy/build.py:314–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 print(f"Failed to establish connection with worker: {last_exception}")
313
314 def close(self) -> None:
315 if self.connected:
316 self.conn.close()
317 # Technically we don't need to wait, but otherwise we will get ResourceWarnings.
318 try:
319 self.proc.wait(timeout=WORKER_SHUTDOWN_TIMEOUT)
320 except subprocess.TimeoutExpired:
321 pass
322 if os.path.isfile(self.status_file):
323 os.unlink(self.status_file)
324
325
326def build_error(msg: str) -> NoReturn:

Callers 1

buildFunction · 0.45

Calls 1

isfileMethod · 0.45

Tested by

no test coverage detected