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

Function do_stop

mypy/dmypy/client.py:441–449  ·  view source on GitHub ↗

Stop daemon via a 'stop' request.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

439
440@action(stop_parser)
441def do_stop(args: argparse.Namespace) -> None:
442 """Stop daemon via a 'stop' request."""
443 # May raise BadStatus, which will be handled by main().
444 response = request(args.status_file, "stop", timeout=5)
445 if "error" in response:
446 show_stats(response)
447 fail(f"Daemon may be busy processing; if this persists, consider {sys.argv[0]} kill")
448 else:
449 print("Daemon stopped")
450
451
452@action(kill_parser)

Callers 1

restart_serverFunction · 0.85

Calls 4

requestFunction · 0.85
show_statsFunction · 0.85
printFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…