Code improvements from new Ruff checks (#11498)

This commit is contained in:
Avasam
2024-02-29 01:30:18 -05:00
committed by GitHub
parent c75ecf0bca
commit da69247514
9 changed files with 12 additions and 14 deletions

View File

@@ -279,7 +279,7 @@ def run_mypy(
flags.append("--no-site-packages")
mypy_args = [*flags, *map(str, files)]
mypy_command = [venv_info.python_exe, "-m", "mypy"] + mypy_args
mypy_command = [venv_info.python_exe, "-m", "mypy", *mypy_args]
if args.verbose:
print(colored(f"running {' '.join(mypy_command)}", "blue"))
result = subprocess.run(mypy_command, capture_output=True, text=True, env=env_vars)