mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import mimetools
|
||||
from typing import Any, Dict, Protocol
|
||||
from typing import Any, Protocol
|
||||
|
||||
class HTTPMessage(mimetools.Message):
|
||||
def addcontinue(self, key: str, more: str) -> None: ...
|
||||
dict: Dict[str, str]
|
||||
dict: dict[str, str]
|
||||
def addheader(self, key: str, value: str) -> None: ...
|
||||
unixfrom: str
|
||||
headers: Any
|
||||
@@ -151,7 +151,7 @@ class LineAndFileWrapper:
|
||||
|
||||
# Constants
|
||||
|
||||
responses: Dict[int, str]
|
||||
responses: dict[int, str]
|
||||
|
||||
HTTP_PORT: int
|
||||
HTTPS_PORT: int
|
||||
|
||||
Reference in New Issue
Block a user