aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2021-06-19 00:25:21 -0500
committerDylan Baker <dylan@pnwbakers.com>2021-08-22 07:57:29 -0700
commit2e7019dd853c1f6fb2b2ecee8e438ded38b674d0 (patch)
tree4f8d5522511fb0f84f1f4d866a9d41b4b13b7420 /mesonbuild/mesonlib
parent0287af461c49c80a47f74b5e6d65844afcfdc20e (diff)
downloadmeson-2e7019dd853c1f6fb2b2ecee8e438ded38b674d0.zip
meson-2e7019dd853c1f6fb2b2ecee8e438ded38b674d0.tar.gz
meson-2e7019dd853c1f6fb2b2ecee8e438ded38b674d0.tar.bz2
Add subscript to subprocess.Popen
Diffstat (limited to 'mesonbuild/mesonlib')
-rw-r--r--mesonbuild/mesonlib/universal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py
index 3ce46f7..b807377 100644
--- a/mesonbuild/mesonlib/universal.py
+++ b/mesonbuild/mesonlib/universal.py
@@ -1385,7 +1385,7 @@ def partition(pred: T.Callable[[_T], object], iterable: T.Iterable[_T]) -> T.Tup
def Popen_safe(args: T.List[str], write: T.Optional[str] = None,
stdout: T.Union[T.TextIO, T.BinaryIO, int] = subprocess.PIPE,
stderr: T.Union[T.TextIO, T.BinaryIO, int] = subprocess.PIPE,
- **kwargs: T.Any) -> T.Tuple[subprocess.Popen, str, str]:
+ **kwargs: T.Any) -> T.Tuple['subprocess.Popen[str]', str, str]:
import locale
encoding = locale.getpreferredencoding()
# Redirect stdin to DEVNULL otherwise the command run by us here might mess
@@ -1408,7 +1408,7 @@ def Popen_safe(args: T.List[str], write: T.Optional[str] = None,
def Popen_safe_legacy(args: T.List[str], write: T.Optional[str] = None,
stdout: T.Union[T.TextIO, T.BinaryIO, int] = subprocess.PIPE,
stderr: T.Union[T.TextIO, T.BinaryIO, int] = subprocess.PIPE,
- **kwargs: T.Any) -> T.Tuple[subprocess.Popen, str, str]:
+ **kwargs: T.Any) -> T.Tuple['subprocess.Popen[str]', str, str]:
p = subprocess.Popen(args, universal_newlines=False, close_fds=False,
stdout=stdout, stderr=stderr, **kwargs)
input_ = None # type: T.Optional[bytes]