platform, tarfile, io: Python 3.13 updates (#12056)

This commit is contained in:
Amin Alaee
2024-05-29 14:37:26 +02:00
committed by GitHub
parent b2f6e5221b
commit b45456739a
4 changed files with 63 additions and 23 deletions

View File

@@ -40,3 +40,28 @@ def platform(aliased: bool = ..., terse: bool = ...) -> str: ...
if sys.version_info >= (3, 10):
def freedesktop_os_release() -> dict[str, str]: ...
if sys.version_info >= (3, 13):
class AndroidVer(NamedTuple):
release: str
api_level: int
manufacturer: str
model: str
device: str
is_emulator: bool
class IOSVersionInfo(NamedTuple):
system: str
release: str
model: str
is_simulator: bool
def android_ver(
release: str = "",
api_level: int = 0,
manufacturer: str = "",
model: str = "",
device: str = "",
is_emulator: bool = False,
) -> AndroidVer: ...
def ios_ver(system: str = "", release: str = "", model: str = "", is_simulator: bool = False) -> IOSVersionInfo: ...