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:
@@ -15,12 +15,7 @@ def reset_cache(**kwargs: Any) -> None: ...
|
||||
class DjangoTranslation(gettext_module.GNUTranslations):
|
||||
domain: str = ...
|
||||
plural: Callable = ...
|
||||
def __init__(
|
||||
self,
|
||||
language: str,
|
||||
domain: Optional[str] = ...,
|
||||
localedirs: Optional[List[str]] = ...,
|
||||
) -> None: ...
|
||||
def __init__(self, language: str, domain: Optional[str] = ..., localedirs: Optional[List[str]] = ...) -> None: ...
|
||||
def merge(self, other: NullTranslations) -> None: ...
|
||||
def language(self): ...
|
||||
def to_language(self) -> str: ...
|
||||
@@ -35,19 +30,13 @@ def catalog(): ...
|
||||
def gettext(message: str) -> str: ...
|
||||
def pgettext(context: str, message: str) -> str: ...
|
||||
def gettext_noop(message: str) -> str: ...
|
||||
def do_ntranslate(
|
||||
singular: str, plural: str, number: float, translation_function: str
|
||||
) -> str: ...
|
||||
def do_ntranslate(singular: str, plural: str, number: float, translation_function: str) -> str: ...
|
||||
def ngettext(singular: str, plural: str, number: float) -> str: ...
|
||||
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ...
|
||||
def all_locale_paths() -> List[str]: ...
|
||||
def check_for_language(lang_code: Optional[str]) -> bool: ...
|
||||
def get_languages() -> OrderedDict: ...
|
||||
def get_supported_language_variant(
|
||||
lang_code: Optional[str], strict: bool = ...
|
||||
) -> str: ...
|
||||
def get_supported_language_variant(lang_code: Optional[str], strict: bool = ...) -> str: ...
|
||||
def get_language_from_path(path: str, strict: bool = ...) -> Optional[str]: ...
|
||||
def get_language_from_request(
|
||||
request: WSGIRequest, check_path: bool = ...
|
||||
) -> str: ...
|
||||
def get_language_from_request(request: WSGIRequest, check_path: bool = ...) -> str: ...
|
||||
def parse_accept_lang_header(lang_string: str) -> Tuple: ...
|
||||
|
||||
Reference in New Issue
Block a user