Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli authored and GitHub committed 2021-10-14 17:18:19 -07:00
1 parent 5f386b0575
commit 994b69ef8f
242 files changed
+1212 -1224

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import ctypes
import mmap
import sys
from os import PathLike
from typing import AbstractSet, Any, Awaitable, Container, Iterable, Protocol, Tuple, TypeVar, Union
from typing import AbstractSet, Any, Awaitable, Container, Iterable, Protocol, TypeVar, Union
from typing_extensions import Literal, final
_KT = TypeVar("_KT")
@@ -57,7 +57,7 @@ class SupportsTrunc(Protocol):
# stable
class SupportsItems(Protocol[_KT_co, _VT_co]):
def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ...
def items(self) -> AbstractSet[tuple[_KT_co, _VT_co]]: ...
# stable
class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
+2 -2
View File
@@ -3,12 +3,12 @@
# See the README.md file in this directory for more information.
from sys import _OptExcInfo
from typing import Any, Callable, Dict, Iterable, Protocol, Tuple
from typing import Any, Callable, Dict, Iterable, Protocol
# stable
class StartResponse(Protocol):
def __call__(
self, status: str, headers: list[Tuple[str, str]], exc_info: _OptExcInfo | None = ...
self, status: str, headers: list[tuple[str, str]], exc_info: _OptExcInfo | None = ...
) -> Callable[[bytes], Any]: ...
WSGIEnvironment = Dict[str, Any] # stable