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

@@ -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): ...