Skip to content

Commit

Permalink
Only return empty string if non-fixable errors (home-assistant#50508)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored May 12, 2021
1 parent b35f229 commit 2cdf075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/hassfest/mypy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2cdf075

Please sign in to comment.