run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -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]] = ...,