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

@@ -101,7 +101,7 @@ def main() -> None:
strict_params = _get_strict_params(path)
print(f"\nRunning Pyright ({'stricter' if strict_params else 'base' } configs) for Python {python_version}...")
pyright_result = subprocess.run(
[sys.executable, "tests/pyright_test.py", path, "--pythonversion", python_version] + strict_params,
[sys.executable, "tests/pyright_test.py", path, "--pythonversion", python_version, *strict_params],
stderr=subprocess.PIPE,
text=True,
)