Replace 'Text' with 'str' in py3 stdlib (#5466)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2021-05-16 07:10:48 -07:00
1 parent dbe77b6ae9
commit 6a9c89e928
49 files changed
+328 -349

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
from abc import abstractmethod
from types import TracebackType
from typing import IO, Callable, Dict, List, MutableMapping, Optional, Text, Tuple, Type
from typing import IO, Callable, Dict, List, MutableMapping, Optional, Tuple, Type
from .headers import Headers
from .types import ErrorStream, InputStream, StartResponse, WSGIApplication, WSGIEnvironment
@@ -28,7 +28,7 @@ class BaseHandler:
traceback_limit: Optional[int]
error_status: str
error_headers: List[Tuple[Text, Text]]
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: Text, headers: List[Tuple[Text, Text]], exc_info: Optional[_exc_info] = ...
self, status: str, headers: List[Tuple[str, str]], exc_info: Optional[_exc_info] = ...
) -> Callable[[bytes], None]: ...
def send_preamble(self) -> None: ...
def write(self, data: bytes) -> None: ...