From 2cdf075f952a0263d9ac2a6e995a22d0c53b6cb8 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 11 May 2021 23:54:04 -0700 Subject: [PATCH] Only return empty string if non-fixable errors (#50508) --- script/hassfest/mypy_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 0bc97412bc0..4e75fa6e33e 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -326,7 +326,7 @@ def generate_and_validate(config: Config) -> str: config.add_error("mypy_config", f"Module '{module} doesn't exist") # Don't generate mypy.ini if there're errors found because it will likely crash. - if config.errors: + if any(not err.fixable for err in config.errors): return "" mypy_config = configparser.ConfigParser()