Drop Python 3.8 support in os and sys (#13764)

This commit is contained in:
Joren Hammudoglu
2025-04-02 08:50:06 +02:00
committed by GitHub
parent b266f3e746
commit 0a3d8d2696
2 changed files with 33 additions and 69 deletions
+1 -10
View File
@@ -46,8 +46,7 @@ path: list[str]
path_hooks: list[Callable[[str], PathEntryFinderProtocol]]
path_importer_cache: dict[str, PathEntryFinderProtocol | None]
platform: LiteralString
if sys.version_info >= (3, 9):
platlibdir: str
platlibdir: str
prefix: str
pycache_prefix: str | None
ps1: object
@@ -410,14 +409,6 @@ def setrecursionlimit(limit: int, /) -> None: ...
def setswitchinterval(interval: float, /) -> None: ...
def gettotalrefcount() -> int: ... # Debug builds only
if sys.version_info < (3, 9):
def getcheckinterval() -> int: ... # deprecated
def setcheckinterval(n: int, /) -> None: ... # deprecated
if sys.version_info < (3, 9):
# An 11-tuple or None
def callstats() -> tuple[int, int, int, int, int, int, int, int, int, int, int] | None: ...
# Doesn't exist at runtime, but exported in the stubs so pytest etc. can annotate their code more easily.
@type_check_only
class UnraisableHookArgs(Protocol):