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

Method process_incomplete_features

mypy/options.py:493–501  ·  view source on GitHub ↗
(
        self, *, error_callback: Callable[[str], Any], warning_callback: Callable[[str], Any]
    )

Source from the content-addressed store, hash-verified

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`

Callers

nothing calls this directly

Calls 2

error_callbackFunction · 0.85
warning_callbackFunction · 0.85

Tested by 1

test_stubsFunction · 0.76