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

Function process_start_options

mypy/dmypy_server.py:138–156  ·  view source on GitHub ↗
(flags: list[str], allow_sources: bool)

Source from the content-addressed store, hash-verified

136
137
138def process_start_options(flags: list[str], allow_sources: bool) -> Options:
139 _, options = mypy.main.process_options(
140 ["-i"] + flags, require_targets=False, server_options=True
141 )
142 if options.report_dirs:
143 print("dmypy: Ignoring report generation settings. Start/restart cannot generate reports.")
144 if options.junit_xml:
145 print(
146 "dmypy: Ignoring report generation settings. "
147 "Start/restart does not support --junit-xml. Pass it to check/recheck instead"
148 )
149 options.junit_xml = None
150 if not options.incremental:
151 sys.exit("dmypy: start/restart should not disable incremental mode")
152 if options.follow_imports not in ("skip", "error", "normal"):
153 sys.exit("dmypy: follow-imports=silent not supported")
154 if not options.local_partial_types:
155 sys.exit("dmypy: disabling local-partial-types not supported")
156 return options
157
158
159def ignore_suppressed_imports(module: str) -> bool:

Callers 2

start_serverFunction · 0.90
do_daemonFunction · 0.90

Calls 2

printFunction · 0.85
exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…