MCPcopy Create free account
hub / github.com/python/mypy / get_status

Function get_status

mypy/dmypy/client.py:688–696  ·  view source on GitHub ↗

Read status file and check if the process is alive. Return (pid, connection_name) on success. Raise BadStatus if something's wrong.

(status_file: str)

Source from the content-addressed store, hash-verified

686
687
688def get_status(status_file: str) -> tuple[int, str]:
689 """Read status file and check if the process is alive.
690
691 Return (pid, connection_name) on success.
692
693 Raise BadStatus if something's wrong.
694 """
695 data = read_status(status_file)
696 return check_status(data)
697
698
699def check_status(data: dict[str, Any]) -> tuple[int, str]:

Callers 4

do_startFunction · 0.85
do_killFunction · 0.85
requestFunction · 0.85
is_runningFunction · 0.85

Calls 2

read_statusFunction · 0.90
check_statusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…