Remove Python 3.7 branches (#11238)

This commit is contained in:
Sebastian Rittau
2024-01-05 11:39:39 +01:00
committed by GitHub
parent 4e62577002
commit 23604858a6
122 changed files with 1952 additions and 3800 deletions

View File

@@ -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: