mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -6,28 +6,14 @@ ISO_INPUT_FORMATS: Any
|
||||
FORMAT_SETTINGS: Any
|
||||
|
||||
def reset_format_cache() -> None: ...
|
||||
def iter_format_modules(
|
||||
lang: str, format_module_path: Optional[Union[List[str], str]] = ...
|
||||
) -> Iterator[Any]: ...
|
||||
def get_format_modules(
|
||||
lang: Optional[str] = ..., reverse: bool = ...
|
||||
) -> List[Any]: ...
|
||||
def get_format(
|
||||
format_type: str, lang: Optional[str] = ..., use_l10n: Optional[bool] = ...
|
||||
) -> Union[List[str], int, str]: ...
|
||||
def iter_format_modules(lang: str, format_module_path: Optional[Union[List[str], str]] = ...) -> Iterator[Any]: ...
|
||||
def get_format_modules(lang: Optional[str] = ..., reverse: bool = ...) -> List[Any]: ...
|
||||
def get_format(format_type: str, lang: Optional[str] = ..., use_l10n: Optional[bool] = ...) -> Union[List[str], int, str]: ...
|
||||
|
||||
get_format_lazy: Any
|
||||
|
||||
def date_format(
|
||||
value: Union[datetime, str],
|
||||
format: Optional[str] = ...,
|
||||
use_l10n: Optional[bool] = ...,
|
||||
) -> str: ...
|
||||
def time_format(
|
||||
value: Union[datetime, str],
|
||||
format: Optional[str] = ...,
|
||||
use_l10n: None = ...,
|
||||
) -> str: ...
|
||||
def date_format(value: Union[datetime, str], format: Optional[str] = ..., use_l10n: Optional[bool] = ...) -> str: ...
|
||||
def time_format(value: Union[datetime, str], format: Optional[str] = ..., use_l10n: None = ...) -> str: ...
|
||||
def number_format(
|
||||
value: Union[Decimal, float, str],
|
||||
decimal_pos: Optional[int] = ...,
|
||||
@@ -35,10 +21,5 @@ def number_format(
|
||||
force_grouping: bool = ...,
|
||||
) -> str: ...
|
||||
def localize(value: Any, use_l10n: Optional[bool] = ...) -> Any: ...
|
||||
def localize_input(
|
||||
value: Optional[Union[datetime, Decimal, float, str]],
|
||||
default: Optional[str] = ...,
|
||||
) -> Optional[str]: ...
|
||||
def sanitize_separators(
|
||||
value: Union[Decimal, int, str]
|
||||
) -> Union[Decimal, int, str]: ...
|
||||
def localize_input(value: Optional[Union[datetime, Decimal, float, str]], default: Optional[str] = ...) -> Optional[str]: ...
|
||||
def sanitize_separators(value: Union[Decimal, int, str]) -> Union[Decimal, int, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user