From 37cf76bda9fcc93fa9791e90d456cf68feb964de Mon Sep 17 00:00:00 2001 From: Akuli Date: Thu, 11 Apr 2024 09:08:41 +0300 Subject: [PATCH] Always redirect npm output to stderr --- pyright/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyright/_utils.py b/pyright/_utils.py index a3b513e..f2a71a5 100644 --- a/pyright/_utils.py +++ b/pyright/_utils.py @@ -67,7 +67,7 @@ def install_pyright(args: tuple[object, ...], *, quiet: bool | None) -> Path: f'pyright@{version}', cwd=str(cache_dir), check=True, - stdout=subprocess.PIPE if silent else sys.stdout, + stdout=subprocess.PIPE if silent else sys.stderr, stderr=subprocess.PIPE if silent else sys.stderr, )