Only return empty string if non-fixable errors (#50508)
This commit is contained in:
parent
b35f229674
commit
2cdf075f95
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue