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

Class Options

mypy/stubgen.py:193–237  ·  view source on GitHub ↗

Represents stubgen options. This class is mutable to simplify testing.

Source from the content-addressed store, hash-verified

191
192
193class Options:
194 """Represents stubgen options.
195
196 This class is mutable to simplify testing.
197 """
198
199 def __init__(
200 self,
201 pyversion: tuple[int, int],
202 no_import: bool,
203 inspect: bool,
204 doc_dir: str,
205 search_path: list[str],
206 interpreter: str,
207 parse_only: bool,
208 ignore_errors: bool,
209 include_private: bool,
210 output_dir: str,
211 modules: list[str],
212 packages: list[str],
213 files: list[str],
214 verbose: bool,
215 quiet: bool,
216 export_less: bool,
217 include_docstrings: bool,
218 ) -> None:
219 # See parse_options for descriptions of the flags.
220 self.pyversion = pyversion
221 self.no_import = no_import
222 self.inspect = inspect
223 self.doc_dir = doc_dir
224 self.search_path = search_path
225 self.interpreter = interpreter
226 self.decointerpreter = interpreter
227 self.parse_only = parse_only
228 self.ignore_errors = ignore_errors
229 self.include_private = include_private
230 self.output_dir = output_dir
231 self.modules = modules
232 self.packages = packages
233 self.files = files
234 self.verbose = verbose
235 self.quiet = quiet
236 self.export_less = export_less
237 self.include_docstrings = include_docstrings
238
239
240class StubSource:

Callers 1

parse_optionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…