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

Function do_restart

mypy/dmypy/client.py:326–332  ·  view source on GitHub ↗

Restart daemon (it may or may not be running; but not hanging). We first try to stop it politely if it's running. This also sets mypy flags from the command line (see do_start()).

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

324
325@action(restart_parser)
326def do_restart(args: argparse.Namespace) -> None:
327 """Restart daemon (it may or may not be running; but not hanging).
328
329 We first try to stop it politely if it's running. This also sets
330 mypy flags from the command line (see do_start()).
331 """
332 restart_server(args)
333
334
335def restart_server(args: argparse.Namespace, allow_sources: bool = False) -> None:

Callers

nothing calls this directly

Calls 1

restart_serverFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…