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

@@ -12,7 +12,7 @@ def format_date_time(timestamp: float | None) -> str: ... # undocumented
def read_environ() -> dict[str, str]: ...
class BaseHandler:
wsgi_version: Tuple[int, int] # undocumented
wsgi_version: tuple[int, int] # undocumented
wsgi_multithread: bool
wsgi_multiprocess: bool
wsgi_run_once: bool
@@ -28,7 +28,7 @@ class BaseHandler:
traceback_limit: int | None
error_status: str
error_headers: list[Tuple[str, str]]
error_headers: list[tuple[str, str]]
error_body: bytes
def run(self, application: WSGIApplication) -> None: ...
def setup_environ(self) -> None: ...
@@ -37,7 +37,7 @@ class BaseHandler:
def set_content_length(self) -> None: ...
def cleanup_headers(self) -> None: ...
def start_response(
self, status: str, headers: list[Tuple[str, str]], exc_info: _exc_info | None = ...
self, status: str, headers: list[tuple[str, str]], exc_info: _exc_info | None = ...
) -> Callable[[bytes], None]: ...
def send_preamble(self) -> None: ...
def write(self, data: bytes) -> None: ...