mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -14,13 +14,9 @@ class BadHeaderError(ValueError): ...
|
||||
|
||||
ADDRESS_HEADERS: Any
|
||||
|
||||
def forbid_multi_line_headers(
|
||||
name: str, val: str, encoding: str
|
||||
) -> Tuple[str, str]: ...
|
||||
def forbid_multi_line_headers(name: str, val: str, encoding: str) -> Tuple[str, str]: ...
|
||||
def split_addr(addr: str, encoding: str) -> Tuple[str, str]: ...
|
||||
def sanitize_address(
|
||||
addr: Union[Tuple[str, str], str], encoding: str
|
||||
) -> str: ...
|
||||
def sanitize_address(addr: Union[Tuple[str, str], str], encoding: str) -> str: ...
|
||||
|
||||
class MIMEMixin:
|
||||
def as_string(self, unixfrom: bool = ..., linesep: str = ...) -> str: ...
|
||||
@@ -39,9 +35,7 @@ class SafeMIMEText(MIMEMixin, MIMEText):
|
||||
policy: email._policybase.Compat32
|
||||
preamble: None
|
||||
encoding: str = ...
|
||||
def __init__(
|
||||
self, _text: str, _subtype: str = ..., _charset: str = ...
|
||||
) -> None: ...
|
||||
def __init__(self, _text: str, _subtype: str = ..., _charset: str = ...) -> None: ...
|
||||
def __setitem__(self, name: str, val: str) -> None: ...
|
||||
def set_payload(self, payload: str, charset: str = ...) -> None: ...
|
||||
|
||||
@@ -52,12 +46,7 @@ class SafeMIMEMultipart(MIMEMixin, MIMEMultipart):
|
||||
preamble: None
|
||||
encoding: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
_subtype: str = ...,
|
||||
boundary: None = ...,
|
||||
_subparts: None = ...,
|
||||
encoding: str = ...,
|
||||
**_params: Any
|
||||
self, _subtype: str = ..., boundary: None = ..., _subparts: None = ..., encoding: str = ..., **_params: Any
|
||||
) -> None: ...
|
||||
def __setitem__(self, name: str, val: str) -> None: ...
|
||||
|
||||
@@ -83,9 +72,7 @@ class EmailMessage:
|
||||
to: Optional[Union[List[str], Tuple[str, str], str]] = ...,
|
||||
bcc: Optional[Union[List[str], Tuple[str], str]] = ...,
|
||||
connection: Optional[BaseEmailBackend] = ...,
|
||||
attachments: Optional[
|
||||
Union[List[Tuple[str, str]], List[MIMEText]]
|
||||
] = ...,
|
||||
attachments: Optional[Union[List[Tuple[str, str]], List[MIMEText]]] = ...,
|
||||
headers: Optional[Dict[str, str]] = ...,
|
||||
cc: Optional[Union[List[str], Tuple[str, str], str]] = ...,
|
||||
reply_to: Optional[Union[List[Optional[str]], str]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user