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

Function send

mypy/ipc.py:463–471  ·  view source on GitHub ↗

Send data to a connection encoded and framed. The data must be a non-abstract IPCMessage. We assume that a single send call is a single frame to be sent.

(connection: IPCBase, data: IPCMessage)

Source from the content-addressed store, hash-verified

461
462
463def send(connection: IPCBase, data: IPCMessage) -> None:
464 """Send data to a connection encoded and framed.
465
466 The data must be a non-abstract IPCMessage. We assume that a single send call is a
467 single frame to be sent.
468 """
469 buf = WriteBuffer()
470 data.write(buf)
471 connection.write_bytes(buf.getvalue())
472
473
474def receive(connection: IPCBase) -> ReadBuffer:

Callers 4

buildFunction · 0.90
submit_to_workersMethod · 0.90
serveFunction · 0.90
timed_sendFunction · 0.90

Calls 2

write_bytesMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…