MCPcopy
hub / github.com/python/mypy / server

Function server

mypy/test/testipc.py:15–23  ·  view source on GitHub ↗
(msg: str, q: Queue[str])

Source from the content-addressed store, hash-verified

13
14
15def server(msg: str, q: Queue[str]) -> None:
16 server = IPCServer(CONNECTION_NAME)
17 q.put(server.connection_name)
18 data = ""
19 while not data:
20 with server:
21 server.write(msg)
22 data = server.read()
23 server.cleanup()
24
25
26def server_multi_message_echo(q: Queue[str]) -> None:

Callers

nothing calls this directly

Calls 5

cleanupMethod · 0.95
IPCServerClass · 0.90
putMethod · 0.80
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…