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

Method _start

mypy/moduleinspect.py:125–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 self._start()
124
125 def _start(self) -> None:
126 if sys.platform == "linux":
127 ctx = get_context("forkserver")
128 else:
129 ctx = get_context("spawn")
130 self.tasks: Queue[str] = ctx.Queue()
131 self.results: Queue[ModuleProperties | str] = ctx.Queue()
132 self.proc = ctx.Process(target=worker, args=(self.tasks, self.results, sys.path))
133 self.proc.start()
134 self.counter = 0 # Number of successful roundtrips
135
136 def close(self) -> None:
137 """Free any resources used."""

Callers 2

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected