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

Function connect

mypy/build.py:407–413  ·  view source on GitHub ↗
(wc: WorkerClient, data: bytes)

Source from the content-addressed store, hash-verified

405 sources_data = buf.getvalue()
406
407 def connect(wc: WorkerClient, data: bytes) -> None:
408 # Start loading sources in each worker as soon as it is up.
409 wc.connect()
410 if not wc.connected:
411 # Caller should detect this and fail gracefully.
412 return
413 wc.conn.write_bytes(data)
414
415 # We don't wait for workers to be ready until they are actually needed.
416 for worker in workers:

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
write_bytesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…