MCPcopy
hub / github.com/python/mypy / process_strict_bytes

Method process_strict_bytes

mypy/options.py:503–511  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

501 warning_callback(f"Warning: {feature} is already enabled by default")
502
503 def process_strict_bytes(self) -> None:
504 # Sync `--strict-bytes` and `--disable-{bytearray,memoryview}-promotion`
505 if self.strict_bytes:
506 # backwards compatibility
507 self.disable_bytearray_promotion = True
508 self.disable_memoryview_promotion = True
509 else:
510 self.disable_bytearray_promotion = False
511 self.disable_memoryview_promotion = False
512
513 def apply_changes(self, changes: dict[str, object]) -> Options:
514 # Note: effects of this method *must* be idempotent.

Callers 2

test_stubsFunction · 0.95
process_optionsFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_stubsFunction · 0.76