mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
subprocess: Use _CMD instead of str | bytes in getstatusoutput and getoutput (#11354)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user