mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-11 09:08:27 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user