diff --git a/mypy.ini b/mypy.ini index 5783b0b2f67..08dce1ad594 100644 --- a/mypy.ini +++ b/mypy.ini @@ -7,6 +7,7 @@ python_version = 3.10 show_error_codes = true follow_imports = silent ignore_missing_imports = true +local_partial_types = true strict_equality = true no_implicit_optional = true warn_incomplete_stub = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index a97efa10d99..36aa6083326 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -41,6 +41,7 @@ GENERAL_SETTINGS: Final[dict[str, str]] = { "follow_imports": "silent", # Enable some checks globally. "ignore_missing_imports": "true", + "local_partial_types": "true", "strict_equality": "true", "no_implicit_optional": "true", "warn_incomplete_stub": "true",