mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user