platform: update for py38 (#3717)

* platform: update py38 removals

Refer to bpo-28167

* platform: libc_ver takes a None executable in py38
This commit is contained in:
Shantanu
2020-02-05 19:14:30 -08:00
committed by GitHub
parent 7924d36656
commit 94ec308742

View File

@@ -1,12 +1,16 @@
# Stubs for platform (Python 3.5)
from os import devnull as DEV_NULL
from typing import Tuple, NamedTuple
from typing import Optional, Tuple, NamedTuple
import sys
def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
def linux_distribution(distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ..., full_distribution_name: bool = ...) -> Tuple[str, str, str]: ...
def dist(distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ...) -> Tuple[str, str, str]: ...
if sys.version_info >= (3, 8):
def libc_ver(executable: Optional[str] = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
else:
def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
if sys.version_info < (3, 8):
def linux_distribution(distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ..., full_distribution_name: bool = ...) -> Tuple[str, str, str]: ...
def dist(distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ...) -> Tuple[str, str, str]: ...
def win32_ver(release: str = ..., version: str = ..., csd: str = ..., ptype: str = ...) -> Tuple[str, str, str, str]: ...
if sys.version_info >= (3, 8):
def win32_edition() -> str: ...