mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +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
|
||||
|
||||
@@ -83,8 +83,6 @@ shutil.rmtree
|
||||
socketserver.UDPServer.allow_reuse_port
|
||||
string.Template.get_identifiers
|
||||
string.Template.is_valid
|
||||
subprocess.getoutput
|
||||
subprocess.getstatusoutput
|
||||
symtable.SymbolTable.has_exec
|
||||
sys.UnraisableHookArgs # Not exported from sys
|
||||
sys.exception
|
||||
|
||||
Reference in New Issue
Block a user