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

Function do_start

mypy/dmypy/client.py:304–322  ·  view source on GitHub ↗

Start daemon (it must not already be running). This is where mypy flags are set from the command line. Setting flags is a bit awkward; you have to use e.g.: dmypy start -- --strict since we don't want to duplicate mypy's huge list of flags.

(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

302
303@action(start_parser)
304def do_start(args: argparse.Namespace) -> None:
305 """Start daemon (it must not already be running).
306
307 This is where mypy flags are set from the command line.
308
309 Setting flags is a bit awkward; you have to use e.g.:
310
311 dmypy start -- --strict
312
313 since we don't want to duplicate mypy's huge list of flags.
314 """
315 try:
316 get_status(args.status_file)
317 except BadStatus:
318 # Bad or missing status file or dead process; good to start.
319 pass
320 else:
321 fail("Daemon is still alive")
322 start_server(args)
323
324
325@action(restart_parser)

Callers

nothing calls this directly

Calls 3

get_statusFunction · 0.85
start_serverFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…