mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-15 19:18:55 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
def parsedate_tz(data): ...
|
||||
def parsedate(data): ...
|
||||
@@ -26,7 +26,7 @@ class AddrlistClass:
|
||||
def getquote(self): ...
|
||||
def getcomment(self): ...
|
||||
def getdomainliteral(self): ...
|
||||
def getatom(self, atomends: Optional[Any] = ...): ...
|
||||
def getatom(self, atomends: Any | None = ...): ...
|
||||
def getphraselist(self): ...
|
||||
|
||||
class AddressList(AddrlistClass):
|
||||
|
||||
@@ -5,17 +5,17 @@ from email._parseaddr import (
|
||||
parsedate_tz as _parsedate_tz,
|
||||
)
|
||||
from quopri import decodestring as _qdecode
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
def formataddr(pair): ...
|
||||
def getaddresses(fieldvalues): ...
|
||||
def formatdate(timeval: Optional[Any] = ..., localtime: bool = ..., usegmt: bool = ...): ...
|
||||
def make_msgid(idstring: Optional[Any] = ...): ...
|
||||
def formatdate(timeval: Any | None = ..., localtime: bool = ..., usegmt: bool = ...): ...
|
||||
def make_msgid(idstring: Any | None = ...): ...
|
||||
def parsedate(data): ...
|
||||
def parsedate_tz(data): ...
|
||||
def parseaddr(addr): ...
|
||||
def unquote(str): ...
|
||||
def decode_rfc2231(s): ...
|
||||
def encode_rfc2231(s, charset: Optional[Any] = ..., language: Optional[Any] = ...): ...
|
||||
def encode_rfc2231(s, charset: Any | None = ..., language: Any | None = ...): ...
|
||||
def decode_params(params): ...
|
||||
def collapse_rfc2231_value(value, errors=..., fallback_charset=...): ...
|
||||
|
||||
Reference in New Issue
Block a user