From f11eb92bf40a30f082620de30c28849d892a5f90 Mon Sep 17 00:00:00 2001 From: Takumasa N Date: Mon, 5 Feb 2024 22:36:55 +0900 Subject: [PATCH] `subprocess`: Use `_CMD` instead of `str | bytes` in `getstatusoutput` and `getoutput` (#11354) --- stdlib/subprocess.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/subprocess.pyi b/stdlib/subprocess.pyi index a285608a2..d3302aba5 100644 --- a/stdlib/subprocess.pyi +++ b/stdlib/subprocess.pyi @@ -2564,12 +2564,12 @@ class Popen(Generic[AnyStr]): # The result really is always a str. if sys.version_info >= (3, 11): - def getstatusoutput(cmd: str | bytes, *, encoding: str | None = None, errors: str | None = None) -> tuple[int, str]: ... - def getoutput(cmd: str | bytes, *, encoding: str | None = None, errors: str | None = None) -> str: ... + def getstatusoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | None = None) -> tuple[int, str]: ... + def getoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | None = None) -> str: ... else: - def getstatusoutput(cmd: str | bytes) -> tuple[int, str]: ... - def getoutput(cmd: str | bytes) -> str: ... + def getstatusoutput(cmd: _CMD) -> tuple[int, str]: ... + def getoutput(cmd: _CMD) -> str: ... def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented