reformat with black

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:34:58 +03:00
parent 4866354600
commit cf85607969
343 changed files with 6054 additions and 2158 deletions

View File

@@ -8,6 +8,7 @@ from typing import Any, Optional
from django.db.models.base import Model
from django.utils.safestring import SafeText
from typing import Any, Dict, List, Optional, Tuple, Union
TRAILING_PUNCTUATION_CHARS: str
WRAPPING_PUNCTUATION: Any
DOTS: Any
@@ -28,7 +29,11 @@ _json_script_escapes: Any
def json_script(value: Dict[str, str], element_id: SafeText) -> 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[List[Tuple[str]], List[Tuple[str, str]]]) -> SafeText: ...
def format_html_join(
sep: str,
format_string: str,
args_generator: Union[List[Tuple[str]], List[Tuple[str, str]]],
) -> SafeText: ...
def linebreaks(value: str, autoescape: bool = ...) -> str: ...
class MLStripper(HTMLParser):
@@ -43,6 +48,11 @@ def _strip_once(value: str) -> str: ...
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): ...