(
self, *, error_callback: Callable[[str], Any], warning_callback: Callable[[str], Any]
)
| 491 | self.disabled_error_codes -= self.enabled_error_codes |
| 492 | |
| 493 | def process_incomplete_features( |
| 494 | self, *, error_callback: Callable[[str], Any], warning_callback: Callable[[str], Any] |
| 495 | ) -> None: |
| 496 | # Validate incomplete features. |
| 497 | for feature in self.enable_incomplete_feature: |
| 498 | if feature not in INCOMPLETE_FEATURES | COMPLETE_FEATURES: |
| 499 | error_callback(f"Unknown incomplete feature: {feature}") |
| 500 | if feature in COMPLETE_FEATURES: |
| 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` |
nothing calls this directly