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

@@ -8,10 +8,7 @@ request_logger: Any
DEFAULT_LOGGING: Any
def configure_logging(
logging_config: str,
logging_settings: Dict[
str, Union[Dict[str, Dict[str, Union[List[str], bool, str]]], int]
],
logging_config: str, logging_settings: Dict[str, Union[Dict[str, Dict[str, Union[List[str], bool, str]]], int]]
) -> None: ...
class AdminEmailHandler(logging.Handler):
@@ -21,13 +18,9 @@ class AdminEmailHandler(logging.Handler):
lock: _thread.RLock
include_html: bool = ...
email_backend: Optional[str] = ...
def __init__(
self, include_html: bool = ..., email_backend: None = ...
) -> None: ...
def __init__(self, include_html: bool = ..., email_backend: None = ...) -> None: ...
def emit(self, record: LogRecord) -> None: ...
def send_mail(
self, subject: str, message: str, *args: Any, **kwargs: Any
) -> None: ...
def send_mail(self, subject: str, message: str, *args: Any, **kwargs: Any) -> None: ...
def connection(self) -> EmailBackend: ...
def format_subject(self, subject: str) -> str: ...