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

@@ -47,32 +47,24 @@ def ngettext_lazy(singular: Any, plural: Any, number: Optional[Any] = ...): ...
ungettext_lazy = ngettext_lazy
def npgettext_lazy(
context: Any, singular: Any, plural: Any, number: Optional[Any] = ...
): ...
def npgettext_lazy(context: Any, singular: Any, plural: Any, number: Optional[Any] = ...): ...
def activate(language: str) -> None: ...
def deactivate() -> None: ...
class override(ContextDecorator):
language: Optional[str] = ...
deactivate: bool = ...
def __init__(
self, language: Optional[str], deactivate: bool = ...
) -> None: ...
def __init__(self, language: Optional[str], deactivate: bool = ...) -> None: ...
old_language: Optional[str] = ...
def __enter__(self) -> None: ...
def __exit__(
self, exc_type: None, exc_value: None, traceback: None
) -> None: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def get_language() -> Optional[str]: ...
def get_language_bidi() -> bool: ...
def check_for_language(lang_code: Optional[str]) -> bool: ...
def to_language(locale: str) -> str: ...
def to_locale(language: str) -> str: ...
def get_language_from_request(
request: WSGIRequest, check_path: bool = ...
) -> str: ...
def get_language_from_request(request: WSGIRequest, check_path: bool = ...) -> str: ...
def templatize(src: str, **kwargs: Any) -> str: ...
def deactivate_all() -> None: ...
def get_language_info(lang_code: str) -> Any: ...