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

Function should_shutdown

mypy/build_worker/worker.py:140–147  ·  view source on GitHub ↗

Check if the message is a shutdown request.

(buf: ReadBuffer, expected_tag: Tag)

Source from the content-addressed store, hash-verified

138
139
140def should_shutdown(buf: ReadBuffer, expected_tag: Tag) -> bool:
141 """Check if the message is a shutdown request."""
142 tag = read_tag(buf)
143 if tag == SCC_REQUEST_MESSAGE:
144 assert not read_int_list(buf)
145 return True
146 assert tag == expected_tag, f"Unexpected tag: {tag}"
147 return False
148
149
150def serve(server: IPCServer, ctx: ServerContext) -> None:

Callers 1

serveFunction · 0.85

Calls 1

read_int_listFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…