mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-18 07:44:13 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
# file. They are provided for type checking purposes.
|
||||
|
||||
from sys import _OptExcInfo
|
||||
from typing import Any, Callable, Dict, Iterable, List, Optional, Protocol, Text, Tuple
|
||||
from typing import Any, Callable, Dict, Iterable, List, Optional, Protocol, Tuple
|
||||
|
||||
class StartResponse(Protocol):
|
||||
def __call__(
|
||||
self, status: str, headers: List[Tuple[str, str]], exc_info: Optional[_OptExcInfo] = ...
|
||||
) -> Callable[[bytes], Any]: ...
|
||||
|
||||
WSGIEnvironment = Dict[Text, Any]
|
||||
WSGIEnvironment = Dict[str, Any]
|
||||
WSGIApplication = Callable[[WSGIEnvironment, StartResponse], Iterable[bytes]]
|
||||
|
||||
# WSGI input streams per PEP 3333
|
||||
|
||||
Reference in New Issue
Block a user