mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import datetime
|
||||
import sys
|
||||
from email.charset import Charset
|
||||
from typing import List, Optional, Tuple, Union, overload
|
||||
from typing import Optional, Tuple, Union, overload
|
||||
|
||||
_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]
|
||||
_PDTZ = Tuple[int, int, int, int, int, int, int, int, int, Optional[int]]
|
||||
@@ -10,7 +10,7 @@ def quote(str: str) -> str: ...
|
||||
def unquote(str: str) -> str: ...
|
||||
def parseaddr(addr: str | None) -> Tuple[str, str]: ...
|
||||
def formataddr(pair: Tuple[str | None, str], charset: str | Charset = ...) -> str: ...
|
||||
def getaddresses(fieldvalues: List[str]) -> List[Tuple[str, str]]: ...
|
||||
def getaddresses(fieldvalues: list[str]) -> list[Tuple[str, str]]: ...
|
||||
@overload
|
||||
def parsedate(data: None) -> None: ...
|
||||
@overload
|
||||
@@ -37,4 +37,4 @@ def make_msgid(idstring: str | None = ..., domain: str | None = ...) -> str: ...
|
||||
def decode_rfc2231(s: str) -> Tuple[str | None, str | None, str]: ...
|
||||
def encode_rfc2231(s: str, charset: str | None = ..., language: str | None = ...) -> str: ...
|
||||
def collapse_rfc2231_value(value: _ParamType, errors: str = ..., fallback_charset: str = ...) -> str: ...
|
||||
def decode_params(params: List[Tuple[str, str]]) -> List[Tuple[str, _ParamType]]: ...
|
||||
def decode_params(params: list[Tuple[str, str]]) -> list[Tuple[str, _ParamType]]: ...
|
||||
|
||||
Reference in New Issue
Block a user