mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -64,12 +64,7 @@ if sys.platform == "win32":
|
||||
# reveal_type(e.cmd) # Any, but morally is _CMD
|
||||
_FILE: TypeAlias = None | int | IO[Any]
|
||||
_InputString: TypeAlias = ReadableBuffer | str
|
||||
if sys.version_info >= (3, 8):
|
||||
_CMD: TypeAlias = StrOrBytesPath | Sequence[StrOrBytesPath]
|
||||
else:
|
||||
# Python 3.7 doesn't support _CMD being a single PathLike.
|
||||
# See: https://bugs.python.org/issue31961
|
||||
_CMD: TypeAlias = str | bytes | Sequence[StrOrBytesPath]
|
||||
_CMD: TypeAlias = StrOrBytesPath | Sequence[StrOrBytesPath]
|
||||
if sys.platform == "win32":
|
||||
_ENV: TypeAlias = Mapping[str, str]
|
||||
else:
|
||||
@@ -80,8 +75,7 @@ _T = TypeVar("_T")
|
||||
# These two are private but documented
|
||||
if sys.version_info >= (3, 11):
|
||||
_USE_VFORK: bool
|
||||
if sys.version_info >= (3, 8):
|
||||
_USE_POSIX_SPAWN: bool
|
||||
_USE_POSIX_SPAWN: bool
|
||||
|
||||
class CompletedProcess(Generic[_T]):
|
||||
# morally: _CMD
|
||||
@@ -2577,11 +2571,7 @@ else:
|
||||
def getstatusoutput(cmd: str | bytes) -> tuple[int, str]: ...
|
||||
def getoutput(cmd: str | bytes) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
|
||||
|
||||
else:
|
||||
def list2cmdline(seq: Iterable[str]) -> str: ... # undocumented
|
||||
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
|
||||
|
||||
if sys.platform == "win32":
|
||||
class STARTUPINFO:
|
||||
|
||||
Reference in New Issue
Block a user