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

Function do_kill

mypy/dmypy/client.py:453–461  ·  view source on GitHub ↗

Kill daemon process with SIGKILL.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

451
452@action(kill_parser)
453def do_kill(args: argparse.Namespace) -> None:
454 """Kill daemon process with SIGKILL."""
455 pid, _ = get_status(args.status_file)
456 try:
457 kill(pid)
458 except OSError as err:
459 fail(str(err))
460 else:
461 print("Daemon killed")
462
463
464@action(check_parser)

Callers

nothing calls this directly

Calls 5

killFunction · 0.90
get_statusFunction · 0.85
strClass · 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…