Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood
2021-12-28 10:31:43 +00:00
committed by GitHub
parent e6cb341d94
commit 8d5d2520ac
237 changed files with 966 additions and 1069 deletions

View File

@@ -4,7 +4,7 @@ if sys.version_info < (3, 8):
import os
DEV_NULL = os.devnull
from typing import NamedTuple, Tuple
from typing import NamedTuple
if sys.version_info >= (3, 8):
def libc_ver(executable: str | None = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> tuple[str, str]: ...
@@ -17,11 +17,11 @@ if sys.version_info < (3, 8):
distname: str = ...,
version: str = ...,
id: str = ...,
supported_dists: Tuple[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, ...] = ...
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]: ...