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

Function kill

mypy/dmypy_os.py:38–43  ·  view source on GitHub ↗

Kill the process.

(pid: int)

Source from the content-addressed store, hash-verified

36
37
38def kill(pid: int) -> None:
39 """Kill the process."""
40 if sys.platform == "win32":
41 subprocess.check_output(f"taskkill /pid {pid} /f /t")
42 else:
43 os.kill(pid, signal.SIGKILL)

Callers 1

do_killFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…