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

Method check_for_invalid_options

mypy/build.py:3298–3303  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3296 self.check_for_invalid_options()
3297
3298 def check_for_invalid_options(self) -> None:
3299 if self.options.mypyc and not self.options.strict_bytes:
3300 self.manager.errors.set_file(self.xpath, self.id, options=self.options)
3301 self.manager.error(
3302 None, "Option --strict-bytes cannot be disabled when using mypyc", blocker=True
3303 )
3304
3305 def semantic_analysis_pass1(self) -> None:
3306 """Perform pass 1 of semantic analysis, which happens immediately after parsing.

Callers 1

Calls 2

set_fileMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected