Add --threads argument to pyright cli (#12688)

This commit is contained in:
Avasam
2024-09-23 13:19:28 -04:00
committed by GitHub
parent bb981771ed
commit f0e16b8743
3 changed files with 5 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ def main() -> None:
# version installed into the virtual environment, due to failures on some
# platforms. https://github.com/python/typeshed/issues/11614
os.environ["PYRIGHT_PYTHON_FORCE_VERSION"] = pyright_version
command = [npx, f"pyright@{pyright_version}"] + sys.argv[1:]
command = [npx, f"pyright@{pyright_version}"] + sys.argv[1:] + ["--threads"]
print_command(command)
ret = subprocess.run(command).returncode