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

Function receive

mypy/ipc.py:474–482  ·  view source on GitHub ↗

Receive single encoded IPCMessage frame from a connection. Raise OSError if the data received is not valid.

(connection: IPCBase)

Source from the content-addressed store, hash-verified

472
473
474def receive(connection: IPCBase) -> ReadBuffer:
475 """Receive single encoded IPCMessage frame from a connection.
476
477 Raise OSError if the data received is not valid.
478 """
479 bdata = connection.read_bytes()
480 if not bdata:
481 raise OSError("No data received")
482 return ReadBuffer(bdata)
483
484
485class IPCMessage:

Callers 2

serveFunction · 0.90

Calls 1

read_bytesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…