Fix subprocess.list2cmdline: wrong type of the seq argument (#6190)

This commit is contained in:
ROHAN SALWAN
2021-10-25 14:36:55 +05:30
committed by GitHub
parent e4fa30e840
commit 766f7e76ec

View File

@@ -1016,7 +1016,12 @@ class Popen(Generic[AnyStr]):
# The result really is always a str.
def getstatusoutput(cmd: _TXT) -> tuple[int, str]: ...
def getoutput(cmd: _TXT) -> str: ...
def list2cmdline(seq: Iterable[str]) -> str: ... # undocumented
if sys.version_info >= (3, 8):
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
else:
def list2cmdline(seq: Iterable[str]) -> str: ... # undocumented
if sys.platform == "win32":
class STARTUPINFO: