(self)
| 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. |
no outgoing calls