Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -36,7 +36,7 @@ class WorkingSet:
def subscribe(self, callback: Callable[[Distribution], None]) -> None: ...
def find_plugins(
self, plugin_env: Environment, full_env: Environment | None = ..., fallback: bool = ...
) -> Tuple[list[Distribution], dict[Distribution, Exception]]: ...
) -> tuple[list[Distribution], dict[Distribution, Exception]]: ...
working_set: WorkingSet = ...
@@ -71,7 +71,7 @@ class Requirement:
project_name: str
key: str
extras: Tuple[str, ...]
specs: list[Tuple[str, str]]
specs: list[tuple[str, str]]
# TODO: change this to packaging.markers.Marker | None once we can import
# packaging.markers
marker: Any | None
@@ -255,7 +255,7 @@ class FileMetadata(EmptyProvider, IResourceProvider):
def parse_version(v: str) -> Version | LegacyVersion: ...
def yield_lines(strs: _NestedStr) -> Generator[str, None, None]: ...
def split_sections(strs: _NestedStr) -> Generator[Tuple[str | None, str], None, None]: ...
def split_sections(strs: _NestedStr) -> Generator[tuple[str | None, str], None, None]: ...
def safe_name(name: str) -> str: ...
def safe_version(version: str) -> str: ...
def safe_extra(extra: str) -> str: ...