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

Method parse_inline_configuration

mypy/build.py:3283–3286  ·  view source on GitHub ↗

Check for inline mypy: options directive and parse them.

(self, source: str)

Source from the content-addressed store, hash-verified

3281 self.manager.errors.set_skipped_lines(self.xpath, self.tree.skipped_lines)
3282
3283 def parse_inline_configuration(self, source: str) -> None:
3284 """Check for inline mypy: options directive and parse them."""
3285 flags = get_mypy_comments(source)
3286 self.apply_inline_configuration(flags)
3287
3288 def apply_inline_configuration(self, flags: list[tuple[int, str]] | None) -> None:
3289 """Apply inline mypy configuration comments and check for invalid options."""

Callers 1

get_sourceMethod · 0.95

Calls 2

get_mypy_commentsFunction · 0.90

Tested by

no test coverage detected