Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli authored and GitHub committed 2021-08-08 09:26:35 -07:00
1 parent 11f54c3407
commit ce11072dbe
325 files changed
+2196 -2334

No files matched your search

+5 -5
View File
@@ -1,6 +1,6 @@
from abc import abstractmethod
from types import TracebackType
from typing import IO, Callable, Dict, List, MutableMapping, Optional, Tuple, Type
from typing import IO, Callable, MutableMapping, Optional, Tuple, Type
from .headers import Headers
from .types import ErrorStream, InputStream, StartResponse, WSGIApplication, WSGIEnvironment
@@ -9,7 +9,7 @@ from .util import FileWrapper
_exc_info = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
def format_date_time(timestamp: float | None) -> str: ... # undocumented
def read_environ() -> Dict[str, str]: ...
def read_environ() -> dict[str, str]: ...
class BaseHandler:
wsgi_version: Tuple[int, int] # undocumented
@@ -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: ...
@@ -49,7 +49,7 @@ class BaseHandler:
def client_is_modern(self) -> bool: ...
def log_exception(self, exc_info: _exc_info) -> None: ...
def handle_error(self) -> None: ...
def error_output(self, environ: WSGIEnvironment, start_response: StartResponse) -> List[bytes]: ...
def error_output(self, environ: WSGIEnvironment, start_response: StartResponse) -> list[bytes]: ...
@abstractmethod
def _write(self, data: bytes) -> None: ...
@abstractmethod