diff --git a/mypy.ini b/mypy.ini index 0ce41821f51..546ae52f972 100644 --- a/mypy.ini +++ b/mypy.ini @@ -4,6 +4,7 @@ [mypy] python_version = 3.12 +platform = linux plugins = pydantic.mypy show_error_codes = true follow_imports = normal diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 40d2c9718d6..fab3d5fcd7f 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -32,6 +32,7 @@ HEADER: Final = """ GENERAL_SETTINGS: Final[dict[str, str]] = { "python_version": ".".join(str(x) for x in REQUIRED_PYTHON_VER[:2]), + "platform": "linux", "plugins": "pydantic.mypy", "show_error_codes": "true", "follow_imports": "normal",