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

Function send

mypy/dmypy_util.py:37–43  ·  view source on GitHub ↗

Send data to a connection encoded and framed. The data must be JSON-serializable. We assume that a single send call is a single frame to be sent on the connect.

(connection: IPCBase, data: Any)

Source from the content-addressed store, hash-verified

35
36
37def send(connection: IPCBase, data: Any) -> None:
38 """Send data to a connection encoded and framed.
39
40 The data must be JSON-serializable. We assume that a single send call is a
41 single frame to be sent on the connect.
42 """
43 connection.write(json.dumps(data))
44
45
46class WriteToConn(TextIO):

Callers 3

serveMethod · 0.90
requestFunction · 0.90
writeMethod · 0.70

Calls 2

dumpsMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…