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

@@ -1,6 +1,6 @@
import sys
from re import RegexFlag
from typing import Any, Iterable, Mapping, Sequence, Tuple
from typing import Any, Iterable, Mapping, Sequence
if sys.version_info >= (3, 8):
from re import Pattern
@@ -34,7 +34,7 @@ class Template:
class Formatter:
def format(self, __format_string: str, *args: Any, **kwargs: Any) -> str: ...
def vformat(self, format_string: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> str: ...
def parse(self, format_string: str) -> Iterable[Tuple[str, str | None, str | None, str | None]]: ...
def parse(self, format_string: str) -> Iterable[tuple[str, str | None, str | None, str | None]]: ...
def get_field(self, field_name: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ...
def get_value(self, key: int | str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ...
def check_unused_args(self, used_args: Sequence[int | str], args: Sequence[Any], kwargs: Mapping[str, Any]) -> None: ...