mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
subprocess: new params in 3.11 (#7907)
This commit is contained in:
@@ -1652,8 +1652,13 @@ class Popen(Generic[AnyStr]):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
|
||||
# The result really is always a str.
|
||||
def getstatusoutput(cmd: _TXT) -> tuple[int, str]: ...
|
||||
def getoutput(cmd: _TXT) -> str: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def getstatusoutput(cmd: _TXT, *, encoding: str | None = ..., errors: str | None = ...) -> tuple[int, str]: ...
|
||||
def getoutput(cmd: _TXT, *, encoding: str | None = ..., errors: str | None = ...) -> str: ...
|
||||
|
||||
else:
|
||||
def getstatusoutput(cmd: _TXT) -> tuple[int, str]: ...
|
||||
def getoutput(cmd: _TXT) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user