mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-20 02:33:17 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -14,9 +14,7 @@ def addslashes(value: str) -> str: ...
|
||||
def capfirst(value: str) -> str: ...
|
||||
def escapejs_filter(value: str) -> SafeText: ...
|
||||
def json_script(value: Dict[str, str], element_id: SafeText) -> SafeText: ...
|
||||
def floatformat(
|
||||
text: Optional[Union[Decimal, float, str]], arg: Union[int, str] = ...
|
||||
) -> str: ...
|
||||
def floatformat(text: Optional[Union[Decimal, float, str]], arg: Union[int, str] = ...) -> str: ...
|
||||
def iriencode(value: str) -> str: ...
|
||||
def linenumbers(value: str, autoescape: bool = ...) -> SafeText: ...
|
||||
def lower(value: str) -> str: ...
|
||||
@@ -31,9 +29,7 @@ def truncatewords_html(value: str, arg: Union[int, str]) -> str: ...
|
||||
def upper(value: str) -> str: ...
|
||||
def urlencode(value: str, safe: Optional[SafeText] = ...) -> str: ...
|
||||
def urlize(value: str, autoescape: bool = ...) -> SafeText: ...
|
||||
def urlizetrunc(
|
||||
value: str, limit: Union[SafeText, int], autoescape: bool = ...
|
||||
) -> SafeText: ...
|
||||
def urlizetrunc(value: str, limit: Union[SafeText, int], autoescape: bool = ...) -> SafeText: ...
|
||||
def wordcount(value: str) -> int: ...
|
||||
def wordwrap(value: str, arg: Union[SafeText, int]) -> str: ...
|
||||
def ljust(value: str, arg: Union[SafeText, int]) -> str: ...
|
||||
@@ -58,21 +54,9 @@ def dictsort(
|
||||
str,
|
||||
],
|
||||
arg: Union[int, str],
|
||||
) -> Union[
|
||||
List[Dict[str, Dict[str, Union[int, str]]]],
|
||||
List[Dict[str, str]],
|
||||
List[Tuple[str, str]],
|
||||
str,
|
||||
]: ...
|
||||
) -> Union[List[Dict[str, Dict[str, Union[int, str]]]], List[Dict[str, str]], List[Tuple[str, str]], str]: ...
|
||||
def dictsortreversed(
|
||||
value: Union[
|
||||
Dict[str, int],
|
||||
List[Dict[str, Union[int, str]]],
|
||||
List[Tuple[str, str]],
|
||||
List[int],
|
||||
int,
|
||||
str,
|
||||
],
|
||||
value: Union[Dict[str, int], List[Dict[str, Union[int, str]]], List[Tuple[str, str]], List[int], int, str],
|
||||
arg: Union[int, str],
|
||||
) -> Union[List[Dict[str, Union[int, str]]], List[Tuple[str, str]], str]: ...
|
||||
def first(value: Union[List[int], List[str], str]) -> Union[int, str]: ...
|
||||
@@ -80,45 +64,25 @@ def join(value: Any, arg: str, autoescape: bool = ...) -> Any: ...
|
||||
def last(value: List[str]) -> str: ...
|
||||
def length(value: Any) -> int: ...
|
||||
def length_is(
|
||||
value: Optional[Union[List[Callable], Tuple[str, str], int, str]],
|
||||
arg: Union[SafeText, int],
|
||||
value: Optional[Union[List[Callable], Tuple[str, str], int, str]], arg: Union[SafeText, int]
|
||||
) -> Union[bool, str]: ...
|
||||
def random(value: List[str]) -> str: ...
|
||||
def slice_filter(value: Any, arg: str) -> Any: ...
|
||||
def unordered_list(
|
||||
value: Union[
|
||||
Iterator[Any],
|
||||
List[Union[List[Union[List[Union[List[str], str]], str]], str]],
|
||||
],
|
||||
autoescape: bool = ...,
|
||||
value: Union[Iterator[Any], List[Union[List[Union[List[Union[List[str], str]], str]], str]]], autoescape: bool = ...
|
||||
) -> SafeText: ...
|
||||
def add(
|
||||
value: Union[List[int], Tuple[int, int], date, int, str],
|
||||
arg: Union[List[int], Tuple[int, int], timedelta, int, str],
|
||||
value: Union[List[int], Tuple[int, int], date, int, str], arg: Union[List[int], Tuple[int, int], timedelta, int, str]
|
||||
) -> Union[List[int], Tuple[int, int, int, int], date, int, str]: ...
|
||||
def get_digit(value: Union[int, str], arg: int) -> Union[int, str]: ...
|
||||
def date(
|
||||
value: Optional[Union[datetime, str]], arg: Optional[str] = ...
|
||||
) -> str: ...
|
||||
def time(
|
||||
value: Optional[Union[datetime, str]], arg: Optional[str] = ...
|
||||
) -> str: ...
|
||||
def timesince_filter(
|
||||
value: Optional[date], arg: Optional[date] = ...
|
||||
) -> str: ...
|
||||
def timeuntil_filter(
|
||||
value: Optional[date], arg: Optional[date] = ...
|
||||
) -> str: ...
|
||||
def default(
|
||||
value: Optional[Union[int, str]], arg: Union[int, str]
|
||||
) -> Union[int, str]: ...
|
||||
def default_if_none(
|
||||
value: Optional[str], arg: Union[int, str]
|
||||
) -> Union[int, str]: ...
|
||||
def date(value: Optional[Union[datetime, str]], arg: Optional[str] = ...) -> str: ...
|
||||
def time(value: Optional[Union[datetime, str]], arg: Optional[str] = ...) -> str: ...
|
||||
def timesince_filter(value: Optional[date], arg: Optional[date] = ...) -> str: ...
|
||||
def timeuntil_filter(value: Optional[date], arg: Optional[date] = ...) -> str: ...
|
||||
def default(value: Optional[Union[int, str]], arg: Union[int, str]) -> Union[int, str]: ...
|
||||
def default_if_none(value: Optional[str], arg: Union[int, str]) -> Union[int, str]: ...
|
||||
def divisibleby(value: int, arg: int) -> bool: ...
|
||||
def yesno(
|
||||
value: Optional[int], arg: Optional[str] = ...
|
||||
) -> Optional[Union[bool, str]]: ...
|
||||
def yesno(value: Optional[int], arg: Optional[str] = ...) -> Optional[Union[bool, str]]: ...
|
||||
def filesizeformat(bytes_: Union[complex, int, str]) -> str: ...
|
||||
def pluralize(value: Any, arg: str = ...) -> str: ...
|
||||
def phone2numeric_filter(value: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user