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

Function restart_server

mypy/dmypy/client.py:335–342  ·  view source on GitHub ↗

Restart daemon (it may or may not be running; but not hanging).

(args: argparse.Namespace, allow_sources: bool = False)

Source from the content-addressed store, hash-verified

333
334
335def restart_server(args: argparse.Namespace, allow_sources: bool = False) -> None:
336 """Restart daemon (it may or may not be running; but not hanging)."""
337 try:
338 do_stop(args)
339 except BadStatus:
340 # Bad or missing status file or dead process; good to start.
341 pass
342 start_server(args, allow_sources)
343
344
345def start_server(args: argparse.Namespace, allow_sources: bool = False) -> None:

Callers 2

do_restartFunction · 0.85
do_runFunction · 0.85

Calls 2

do_stopFunction · 0.85
start_serverFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…