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

Function start_server

mypy/dmypy/client.py:345–353  ·  view source on GitHub ↗

Start the server from command arguments and wait for it.

(args: argparse.Namespace, allow_sources: bool = False)

Source from the content-addressed store, hash-verified

343
344
345def start_server(args: argparse.Namespace, allow_sources: bool = False) -> None:
346 """Start the server from command arguments and wait for it."""
347 # Lazy import so this import doesn't slow down other commands.
348 from mypy.dmypy_server import daemonize, process_start_options
349
350 start_options = process_start_options(args.flags, allow_sources)
351 if daemonize(start_options, args.status_file, timeout=args.timeout, log_file=args.log_file):
352 sys.exit(2)
353 wait_for_server(args.status_file)
354
355
356def wait_for_server(status_file: str, timeout: float = 5.0) -> None:

Callers 3

do_startFunction · 0.85
restart_serverFunction · 0.85
do_runFunction · 0.85

Calls 4

process_start_optionsFunction · 0.90
daemonizeFunction · 0.90
wait_for_serverFunction · 0.85
exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…