mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 21:46:43 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -15,16 +15,10 @@ simple_url_2_re: Any
|
||||
|
||||
def escape(text: Optional[Union[Model, FieldFile, int, str]]) -> SafeText: ...
|
||||
def escapejs(value: str) -> SafeText: ...
|
||||
def json_script(
|
||||
value: Union[Dict[str, str], str], element_id: str
|
||||
) -> SafeText: ...
|
||||
def json_script(value: Union[Dict[str, str], str], element_id: str) -> SafeText: ...
|
||||
def conditional_escape(text: Any) -> str: ...
|
||||
def format_html(format_string: str, *args: Any, **kwargs: Any) -> SafeText: ...
|
||||
def format_html_join(
|
||||
sep: str,
|
||||
format_string: str,
|
||||
args_generator: Union[Iterator[Any], List[Tuple[str]]],
|
||||
) -> SafeText: ...
|
||||
def format_html_join(sep: str, format_string: str, args_generator: Union[Iterator[Any], List[Tuple[str]]]) -> SafeText: ...
|
||||
def linebreaks(value: str, autoescape: bool = ...) -> str: ...
|
||||
|
||||
class MLStripper(HTMLParser):
|
||||
@@ -38,11 +32,6 @@ class MLStripper(HTMLParser):
|
||||
def strip_tags(value: str) -> str: ...
|
||||
def strip_spaces_between_tags(value: str) -> str: ...
|
||||
def smart_urlquote(url: str) -> str: ...
|
||||
def urlize(
|
||||
text: str,
|
||||
trim_url_limit: Optional[int] = ...,
|
||||
nofollow: bool = ...,
|
||||
autoescape: bool = ...,
|
||||
) -> str: ...
|
||||
def urlize(text: str, trim_url_limit: Optional[int] = ..., nofollow: bool = ..., autoescape: bool = ...) -> str: ...
|
||||
def avoid_wrapping(value: str) -> str: ...
|
||||
def html_safe(klass: Any): ...
|
||||
|
||||
Reference in New Issue
Block a user